From 566f64d436cab44353b9b566a3395c356f4bc592 Mon Sep 17 00:00:00 2001 From: Gareth Oates Date: Fri, 16 Feb 2018 10:58:18 +0100 Subject: [PATCH] this._changeHandlers was undefined when calling cancel() --- store.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 };