forked from MapComplete/MapComplete
		
	Refactoring: inline 'self'
This commit is contained in:
		
							parent
							
								
									1406fd5f25
								
							
						
					
					
						commit
						41c74baf99
					
				
					 1 changed files with 2 additions and 4 deletions
				
			
		|  | @ -626,11 +626,9 @@ class MappedStore<TIn, T> extends Store<T> { | |||
|     } | ||||
| 
 | ||||
|     private registerCallbacksToUpstream() { | ||||
|         const self = this | ||||
| 
 | ||||
|         this._unregisterFromUpstream = this._upstream.addCallback((_) => self.update()) | ||||
|         this._unregisterFromUpstream = this._upstream.addCallback((_) => this.update()) | ||||
|         this._unregisterFromExtraStores = this._extraStores?.map((store) => | ||||
|             store?.addCallback((_) => self.update()) | ||||
|             store?.addCallback((_) => this.update()) | ||||
|         ) | ||||
|         this._callbacksAreRegistered = true | ||||
|     } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue