remove bind from ImageIcon

This commit is contained in:
Mariela Michalek 2014-08-03 19:55:34 -03:00
parent b550f7892e
commit 96aabe5386

View File

@ -34,16 +34,17 @@ mindplot.ImageIcon = new Class({
//Icon
var image = this.getImage();
var me = this;
image.addEvent('click', function () {
var iconType = iconModel.getIconType();
var newIconType = this._getNextFamilyIconId(iconType);
var newIconType = me._getNextFamilyIconId(iconType);
iconModel.setIconType(newIconType);
var imgUrl = this._getImageUrl(newIconType);
this._image.setHref(imgUrl);
var imgUrl = me._getImageUrl(newIconType);
me._image.setHref(imgUrl);
}.bind(this));
});
this._image.setCursor('pointer');
}
},