Merge remote-tracking branch 'legend/master'
Conflicts: libmproxy/web/static/app.js
This commit is contained in:
commit
353a6ace47
File diff suppressed because one or more lines are too long
|
@ -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();
|
||||
|
|
|
@ -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 () {
|
||||
|
|
|
@ -54,7 +54,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 () {
|
||||
|
|
Loading…
Reference in New Issue