still removing .bind(this) usages

This commit is contained in:
Ezequiel Bergamaschi
2014-12-26 18:07:31 -03:00
parent ff6ff266c5
commit 0d20938506
12 changed files with 60 additions and 215 deletions

View File

@@ -82,9 +82,10 @@ mindplot.RelationshipPivot = new Class({
var model = this._designer.getModel();
var topics = model.getTopics();
var me = this;
_.each(topics, function (topic) {
topic.removeEvent('ontfocus', this._onTopicClick);
}.bind(this));
topic.removeEvent('ontfocus', me._onTopicClick);
});
workspace.removeChild(this._pivot);
workspace.removeChild(this._startArrow);