Allow ConversationController.load() to be called more than once
This commit is contained in:
		
					parent
					
						
							
								2ffabdcdd9
							
						
					
				
			
			
				commit
				
					
						c81d3f5c0b
					
				
			
		
					 1 changed files with 0 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -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() {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue