aboutsummaryrefslogtreecommitdiffstats
path: root/web/src/js/store/view.js
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2015-03-22 13:33:11 +1300
committerAldo Cortesi <aldo@nullcube.com>2015-03-22 13:33:11 +1300
commit3bf4feb213adf2b9829cd5452ca365e4be7ca10c (patch)
tree572463b2e5223499a977c4da2e3ce8118d373943 /web/src/js/store/view.js
parent89383e9c138f68caf1cc394174250c133d21aa04 (diff)
parent89d66360d6f7caa9760fe56fa146396b1b4251dc (diff)
downloadmitmproxy-3bf4feb213adf2b9829cd5452ca365e4be7ca10c.tar.gz
mitmproxy-3bf4feb213adf2b9829cd5452ca365e4be7ca10c.tar.bz2
mitmproxy-3bf4feb213adf2b9829cd5452ca365e4be7ca10c.zip
Merge branch 'master' of ssh.github.com:mitmproxy/mitmproxy
Diffstat (limited to 'web/src/js/store/view.js')
-rw-r--r--web/src/js/store/view.js8
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;