From ab60420f582caeb40f360c9e40e6a7149a428a34 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Sun, 10 Nov 2013 02:05:25 -0800 Subject: [PATCH] listenTo, not promise for log table loading --- src/UI/System/Logs/Table/LogsTableLayout.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/UI/System/Logs/Table/LogsTableLayout.js b/src/UI/System/Logs/Table/LogsTableLayout.js index 95a59851a..e364baa3c 100644 --- a/src/UI/System/Logs/Table/LogsTableLayout.js +++ b/src/UI/System/Logs/Table/LogsTableLayout.js @@ -58,8 +58,8 @@ define( initialize: function () { this.collection = new LogCollection(); - this.collectionPromise = this.collection.fetch(); + this.listenTo(this.collection, 'sync', this._showTable); vent.on(vent.Events.CommandComplete, this._commandComplete, this); }, @@ -68,12 +68,7 @@ define( }, onShow: function () { - var self = this; this._showToolbar(); - - this.collectionPromise.done(function () { - self._showTable(); - }); }, _showTable: function () {