diff options
author | Maximilian Hils <git@maximilianhils.com> | 2014-11-27 01:40:26 +0100 |
---|---|---|
committer | Maximilian Hils <git@maximilianhils.com> | 2014-11-27 01:40:26 +0100 |
commit | e41c0be293502619b6a072fb9bcd8bbd8694b86a (patch) | |
tree | a13a3f26bfba5fd1f53fbdb10fc08145223af929 /web/src/js/stores/flowstore.js | |
parent | 38bf34ebd9826c6f69d97906282632fbd5cff06b (diff) | |
download | mitmproxy-e41c0be293502619b6a072fb9bcd8bbd8694b86a.tar.gz mitmproxy-e41c0be293502619b6a072fb9bcd8bbd8694b86a.tar.bz2 mitmproxy-e41c0be293502619b6a072fb9bcd8bbd8694b86a.zip |
format code
Diffstat (limited to 'web/src/js/stores/flowstore.js')
-rw-r--r-- | web/src/js/stores/flowstore.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/web/src/js/stores/flowstore.js b/web/src/js/stores/flowstore.js index 91a5d9ec..60cd2605 100644 --- a/web/src/js/stores/flowstore.js +++ b/web/src/js/stores/flowstore.js @@ -37,7 +37,7 @@ _.extend(FlowStore.prototype, { this._pos_map[flow.id] = i; } }, - get: function(flow_id){ + get: function (flow_id) { return this._flow_list[this._pos_map[flow_id]]; } }); @@ -55,12 +55,12 @@ function LiveFlowStore(endpoint) { }.bind(this); } _.extend(LiveFlowStore.prototype, FlowStore.prototype, { - close: function(){ + close: function () { this.conn.close(); }, - add: function(flow) { + add: function (flow) { // Make sure that deferred adds don't add an element twice. - if(!this._pos_map[flow.id]){ + if (!this._pos_map[flow.id]) { FlowStore.prototype.add.call(this, flow); } }, @@ -117,7 +117,7 @@ function FlowView(store, filt, sort) { } _.extend(FlowView.prototype, EventEmitter.prototype, { - close: function(){ + close: function () { this.store._views = _.without(this.store._views, this); }, recalculate: function (flows, filt, sort) { |