diff options
author | Maximilian Hils <git@maximilianhils.com> | 2015-03-27 21:58:04 +0100 |
---|---|---|
committer | Maximilian Hils <git@maximilianhils.com> | 2015-03-27 21:58:04 +0100 |
commit | 1913975fa60c76bfb7e79a908b18e7e93793f71f (patch) | |
tree | 54a4ea1605e2d8219d2983d2181ce4b27168ed49 /web/src/js/store/view.js | |
parent | f39e6c5c18890de902d061226ba413254114c8ad (diff) | |
download | mitmproxy-1913975fa60c76bfb7e79a908b18e7e93793f71f.tar.gz mitmproxy-1913975fa60c76bfb7e79a908b18e7e93793f71f.tar.bz2 mitmproxy-1913975fa60c76bfb7e79a908b18e7e93793f71f.zip |
web: use contexts to pass down stores.
Using contexts frees us from the contracts we have
using props - namely, we can assume them to be constant
for the lifetime of the object.
Diffstat (limited to 'web/src/js/store/view.js')
-rw-r--r-- | web/src/js/store/view.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/web/src/js/store/view.js b/web/src/js/store/view.js index d13822d5..d628d46b 100644 --- a/web/src/js/store/view.js +++ b/web/src/js/store/view.js @@ -35,6 +35,7 @@ _.extend(StoreView.prototype, EventEmitter.prototype, { this.store.removeListener("update", this.update); this.store.removeListener("remove", this.remove); this.store.removeListener("recalculate", this.recalculate); + this.removeAllListeners(); }, recalculate: function (filt, sortfun) { filt = filt || this.filt || default_filt; |