OMG unstable finding bugs

This commit is contained in:
Peter Cottle 2015-04-04 11:42:56 -07:00
parent 6723f4c13a
commit fd353911c5
2 changed files with 3 additions and 3 deletions

View file

@ -228,8 +228,8 @@ var CommandView = Backbone.View.extend({
// for changes that are just comestic, we actually only want to toggle classes
// with jquery rather than brutally delete a html. doing so allows us
// to nicely fade things
var changes = changeEvent.changes;
var changeKeys = _.keys(changes);
var changes = changeEvent.changes || {};
var changeKeys = Object.keys(changes);
if (_.difference(changeKeys, ['status']).length === 0) {
this.updateStatus();
} else {