forked from MapComplete/MapComplete
		
	More refactoring, move minimap behind facade
This commit is contained in:
		
							parent
							
								
									c11ff652b8
								
							
						
					
					
						commit
						d5c1ba4cd1
					
				
					 79 changed files with 1848 additions and 1118 deletions
				
			
		|  | @ -81,9 +81,12 @@ export class UIEventSource<T> { | |||
|         return this; | ||||
|     } | ||||
| 
 | ||||
|     public addCallbackAndRun(callback: ((latestData: T) => void)): UIEventSource<T> { | ||||
|         callback(this.data); | ||||
|         return this.addCallback(callback); | ||||
|     public addCallbackAndRun(callback: ((latestData: T) => (boolean | void | any))): UIEventSource<T> { | ||||
|         const doDeleteCallback = callback(this.data); | ||||
|         if (!doDeleteCallback) { | ||||
|             this.addCallback(callback); | ||||
|         } | ||||
|         return this; | ||||
|     } | ||||
| 
 | ||||
|     public setData(t: T): UIEventSource<T> { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue