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

View File

@@ -166,9 +166,6 @@
},
load: function() {
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) {
conversations.fetch().then(function() {