diff options
author | Maximilian Hils <git@maximilianhils.com> | 2015-03-15 22:05:50 +0100 |
---|---|---|
committer | Maximilian Hils <git@maximilianhils.com> | 2015-03-15 22:05:50 +0100 |
commit | 4a92c425175a4e592c8760f028be683f53ab9b90 (patch) | |
tree | cdbc7f43536fa8c97c9fbaaf995f4434be898e2a /web/src/js/store | |
parent | 3650d7366216e4cdde0fa369e58b681c9bc30236 (diff) | |
download | mitmproxy-4a92c425175a4e592c8760f028be683f53ab9b90.tar.gz mitmproxy-4a92c425175a4e592c8760f028be683f53ab9b90.tar.bz2 mitmproxy-4a92c425175a4e592c8760f028be683f53ab9b90.zip |
web: smaller changes
Diffstat (limited to 'web/src/js/store')
-rw-r--r-- | web/src/js/store/view.js | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/web/src/js/store/view.js b/web/src/js/store/view.js index b5db9287..9bf31c52 100644 --- a/web/src/js/store/view.js +++ b/web/src/js/store/view.js @@ -1,4 +1,3 @@ - var EventEmitter = require('events').EventEmitter; var _ = require("lodash"); @@ -10,7 +9,7 @@ function SortByStoreOrder(elem) { } var default_sort = SortByStoreOrder; -var default_filt = function(elem){ +var default_filt = function (elem) { return true; }; @@ -39,8 +38,8 @@ _.extend(StoreView.prototype, EventEmitter.prototype, { this.store.removeListener("update", this.update); this.store.removeListener("remove", this.remove); this.store.removeListener("recalculate", this.recalculate); - }, - recalculate: function (filt, sortfun) { + }, + recalculate: function (filt, sortfun) { if (filt) { this.filt = filt.bind(this); } |