diff options
author | Legend Tang <sp3478@gmail.com> | 2015-03-06 04:03:52 +0800 |
---|---|---|
committer | Legend Tang <sp3478@gmail.com> | 2015-03-06 04:03:52 +0800 |
commit | 0b57f851bd3a7b4cea9ad384feacd3342cbd321d (patch) | |
tree | 0e8e6fedb7e4b31521449b491f171d011fd17e2e /web | |
parent | 98c0047b4e151c832f46f9a1465a82ffbd714cf3 (diff) | |
download | mitmproxy-0b57f851bd3a7b4cea9ad384feacd3342cbd321d.tar.gz mitmproxy-0b57f851bd3a7b4cea9ad384feacd3342cbd321d.tar.bz2 mitmproxy-0b57f851bd3a7b4cea9ad384feacd3342cbd321d.zip |
another clean up for #503 #504
Diffstat (limited to 'web')
-rw-r--r-- | web/src/js/components/eventlog.js | 3 | ||||
-rw-r--r-- | web/src/js/components/mainview.js | 4 |
2 files changed, 5 insertions, 2 deletions
diff --git a/web/src/js/components/eventlog.js b/web/src/js/components/eventlog.js index 85c33527..ae7cd093 100644 --- a/web/src/js/components/eventlog.js +++ b/web/src/js/components/eventlog.js @@ -49,7 +49,8 @@ var EventLogContents = React.createClass({ view: view }); - view.addListener("add recalculate", this.onEventLogChange); + view.addListener("add", this.onEventLogChange); + view.addListener("recalculate", this.onEventLogChange); }, closeView: function () { this.state.view.close(); diff --git a/web/src/js/components/mainview.js b/web/src/js/components/mainview.js index a98007ec..6d2d3a5f 100644 --- a/web/src/js/components/mainview.js +++ b/web/src/js/components/mainview.js @@ -53,7 +53,9 @@ var MainView = React.createClass({ }); view.addListener("recalculate", this.onRecalculate); - view.addListener("add update remove", this.onUpdate); + view.addListener("add", this.onUpdate); + view.addListener("update", this.onUpdate); + view.addListener("remove", this.onUpdate); view.addListener("remove", this.onRemove); }, onRecalculate: function () { |