removing .bind mootools call (phase 1/2)
This commit is contained in:
@@ -27,11 +27,11 @@ mindplot.widget.IMenu = new Class({
|
||||
this._containerId = containerId;
|
||||
this._mapId = mapId;
|
||||
this._mindmapUpdated = false;
|
||||
|
||||
var me = this;
|
||||
// Register update events ...
|
||||
this._designer.addEvent('modelUpdate', function () {
|
||||
this.setRequireChange(true);
|
||||
}.bind(this));
|
||||
me.setRequireChange(true);
|
||||
});
|
||||
},
|
||||
|
||||
clear:function () {
|
||||
|
@@ -55,9 +55,9 @@ mindplot.widget.IconPanel = new Class({
|
||||
var panel = this;
|
||||
var model = this.getModel();
|
||||
img.on('click', function (event) {
|
||||
model.setValue(this.attr('id'));
|
||||
model.setValue($(this).attr('id'));
|
||||
panel.hide();
|
||||
}.bind(img));
|
||||
});
|
||||
|
||||
count = count + 1;
|
||||
}
|
||||
|
@@ -22,15 +22,11 @@ mindplot.widget.ToolbarPaneItem = new Class({
|
||||
$assert(buttonId, "buttonId can not be null");
|
||||
$assert(model, "model can not be null");
|
||||
this._model = model;
|
||||
var me = this;
|
||||
var fn = function() {
|
||||
// Is the panel being displayed ?
|
||||
if (this.isVisible()) {
|
||||
this.hide();
|
||||
} else {
|
||||
this.show();
|
||||
}
|
||||
|
||||
}.bind(this);
|
||||
me.isVisible() ? me.hide() : me.show();
|
||||
};
|
||||
this.parent(buttonId, fn, {topicAction:true,relAction:false});
|
||||
this._panelElem = this._init();
|
||||
this._visible = false;
|
||||
|
Reference in New Issue
Block a user