diff options
author | Maximilian Hils <git@maximilianhils.com> | 2015-03-21 21:55:02 +0100 |
---|---|---|
committer | Maximilian Hils <git@maximilianhils.com> | 2015-03-21 21:55:02 +0100 |
commit | ac5d74d42c0824b5789cc030bf39a447951e4804 (patch) | |
tree | b2a501e3c8d044c7c1ad73efa454e1bb4db1c88b /web/src/js/store | |
parent | 8725d50d03cf21b37a78c1d2fa03ade055c8a821 (diff) | |
download | mitmproxy-ac5d74d42c0824b5789cc030bf39a447951e4804.tar.gz mitmproxy-ac5d74d42c0824b5789cc030bf39a447951e4804.tar.bz2 mitmproxy-ac5d74d42c0824b5789cc030bf39a447951e4804.zip |
web: fix bugs
Diffstat (limited to 'web/src/js/store')
-rw-r--r-- | web/src/js/store/view.js | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/web/src/js/store/view.js b/web/src/js/store/view.js index 204d22da..d13822d5 100644 --- a/web/src/js/store/view.js +++ b/web/src/js/store/view.js @@ -14,8 +14,6 @@ var default_filt = function (elem) { function StoreView(store, filt, sortfun) { EventEmitter.call(this); - filt = filt || default_filt; - sortfun = sortfun || default_sort; this.store = store; @@ -39,10 +37,10 @@ _.extend(StoreView.prototype, EventEmitter.prototype, { this.store.removeListener("recalculate", this.recalculate); }, recalculate: function (filt, sortfun) { - filt = filt || default_filt; - sortfun = sortfun || default_sort; + filt = filt || this.filt || default_filt; + sortfun = sortfun || this.sortfun || default_sort; filt = filt.bind(this); - sortfun = sortfun.bind(this) + sortfun = sortfun.bind(this); this.filt = filt; this.sortfun = sortfun; |