another clean up for #503 #504

This commit is contained in:
Legend Tang 2015-03-06 04:03:52 +08:00
parent 98c0047b4e
commit 0b57f851bd
3 changed files with 11 additions and 5 deletions

File diff suppressed because one or more lines are too long

View File

@ -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();

View File

@ -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 () {