mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-12-24 20:23:50 +01:00
remove bind from ImageIcon
This commit is contained in:
parent
f24dcc4a5e
commit
ba638f06a1
@ -34,16 +34,17 @@ mindplot.ImageIcon = new Class({
|
|||||||
|
|
||||||
//Icon
|
//Icon
|
||||||
var image = this.getImage();
|
var image = this.getImage();
|
||||||
|
var me = this;
|
||||||
image.addEvent('click', function () {
|
image.addEvent('click', function () {
|
||||||
|
|
||||||
var iconType = iconModel.getIconType();
|
var iconType = iconModel.getIconType();
|
||||||
var newIconType = this._getNextFamilyIconId(iconType);
|
var newIconType = me._getNextFamilyIconId(iconType);
|
||||||
iconModel.setIconType(newIconType);
|
iconModel.setIconType(newIconType);
|
||||||
|
|
||||||
var imgUrl = this._getImageUrl(newIconType);
|
var imgUrl = me._getImageUrl(newIconType);
|
||||||
this._image.setHref(imgUrl);
|
me._image.setHref(imgUrl);
|
||||||
|
|
||||||
}.bind(this));
|
});
|
||||||
this._image.setCursor('pointer');
|
this._image.setCursor('pointer');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user