Allow ConversationController.load() to be called more than once

This commit is contained in:
Scott Nonnenberg 2018-03-07 12:24:43 -08:00 committed by Scott Nonnenberg
parent 2ffabdcdd9
commit c81d3f5c0b
No known key found for this signature in database
GPG key ID: 5F82280C35134661

View file

@ -166,9 +166,6 @@
}, },
load: function() { load: function() {
console.log('ConversationController: starting initial fetch'); console.log('ConversationController: starting initial fetch');
if (this._initialPromise) {
throw new Error('ConversationController.load() has already been called!');
}
this._initialPromise = new Promise(function(resolve, reject) { this._initialPromise = new Promise(function(resolve, reject) {
conversations.fetch().then(function() { conversations.fetch().then(function() {