better refreshing

This commit is contained in:
Peter Cottle 2012-09-29 11:58:07 -07:00
parent f78e77e5c6
commit bc4b9246eb
3 changed files with 9 additions and 4 deletions

View file

@ -37,6 +37,10 @@ var Command = Backbone.Model.extend({
}
},
setResult: function(msg) {
this.set('result', msg);
},
addWarning: function(msg) {
this.get('warnings').push(msg);
// change numWarnings so the change event fires. This is bizarre -- Backbone can't