updated history/missing layout to use collection sync events.

This commit is contained in:
kay.one 2013-09-19 00:33:11 -07:00
commit 2735e41098
2 changed files with 16 additions and 14 deletions

View file

@ -74,16 +74,17 @@ define(
}));
},
onShow: function () {
var self = this;
this.missing.show(new LoadingView());
initialize: function () {
this.missingCollection = new MissingCollection();
this.missingCollection.fetch().done(function () {
self._showTable();
});
this.listenTo(this.missingCollection, 'sync', this._showTable);
},
onShow: function () {
this.missing.show(new LoadingView());
this.missingCollection.fetch();
this._showToolbar();
},