diff --git a/store.js b/store.js index 63a99cca05..6923455113 100644 --- a/store.js +++ b/store.js @@ -115,7 +115,7 @@ assign(Store.prototype, { cancel: function() { var index = this._changeHandlers.indexOf(callback); if (~index) this._changeHandlers.splice(index, 1); - } + }.bind(this) }; }, @@ -163,4 +163,4 @@ assign(Store.prototype, { } }); -export { Store }; \ No newline at end of file +export { Store };