diff options
author | Maximilian Hils <git@maximilianhils.com> | 2015-03-06 10:05:12 +0100 |
---|---|---|
committer | Maximilian Hils <git@maximilianhils.com> | 2015-03-06 10:05:12 +0100 |
commit | 353a6ace47fff92cb47f32663d7ffa2526a21d59 (patch) | |
tree | fcd498bd2b2c51ffbb93bd19f40e506f6e23886c /web/src/js/components/flowtable.js | |
parent | 60dc5e0fe3d2ba6fff1805d47aad7232772da91c (diff) | |
parent | 0b57f851bd3a7b4cea9ad384feacd3342cbd321d (diff) | |
download | mitmproxy-353a6ace47fff92cb47f32663d7ffa2526a21d59.tar.gz mitmproxy-353a6ace47fff92cb47f32663d7ffa2526a21d59.tar.bz2 mitmproxy-353a6ace47fff92cb47f32663d7ffa2526a21d59.zip |
Merge remote-tracking branch 'legend/master'
Conflicts:
libmproxy/web/static/app.js
Diffstat (limited to 'web/src/js/components/flowtable.js')
-rw-r--r-- | web/src/js/components/flowtable.js | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/web/src/js/components/flowtable.js b/web/src/js/components/flowtable.js index d4515257..cd50b891 100644 --- a/web/src/js/components/flowtable.js +++ b/web/src/js/components/flowtable.js @@ -65,15 +65,24 @@ var FlowTable = React.createClass({ }, componentWillMount: function () { if (this.props.view) { - this.props.view.addListener("add update remove recalculate", this.onChange); + this.props.view.addListener("add", this.onChange); + this.props.view.addListener("update", this.onChange); + this.props.view.addListener("remove", this.onChange); + this.props.view.addListener("recalculate", this.onChange); } }, componentWillReceiveProps: function (nextProps) { if (nextProps.view !== this.props.view) { if (this.props.view) { - this.props.view.removeListener("add update remove recalculate"); + this.props.view.removeListener("add"); + this.props.view.removeListener("update"); + this.props.view.removeListener("remove"); + this.props.view.removeListener("recalculate"); } - nextProps.view.addListener("add update remove recalculate", this.onChange); + nextProps.view.addListener("add", this.onChange); + nextProps.view.addListener("update", this.onChange); + nextProps.view.addListener("remove", this.onChange); + nextProps.view.addListener("recalculate", this.onChange); } }, getDefaultProps: function () { |