forked from MapComplete/MapComplete
		
	Further improvements to entrances theme, add layer-crossdependency detection, add layers which another layer depends on automatically to the theme, add documentation on which layers depends on which other layers, regenerate documentation
This commit is contained in:
		
							parent
							
								
									8e40d76281
								
							
						
					
					
						commit
						0ee23ce36d
					
				
					 27 changed files with 9032 additions and 331 deletions
				
			
		|  | @ -224,6 +224,7 @@ export class UIEventSource<T> { | |||
| 
 | ||||
|     public ping(): void { | ||||
|         let toDelete = undefined | ||||
|         let startTime = new Date().getTime() / 1000; | ||||
|         for (const callback of this._callbacks) { | ||||
|             if (callback(this.data) === true) { | ||||
|                 // This callback wants to be deleted
 | ||||
|  | @ -235,6 +236,10 @@ export class UIEventSource<T> { | |||
|                 } | ||||
|             } | ||||
|         } | ||||
|         let endTime = new Date().getTime() / 1000 | ||||
|         if((endTime - startTime) > 500){ | ||||
|             console.trace("Warning: a ping of ",this.tag," took more then 500ms; this is probably a performance issue") | ||||
|         } | ||||
|         if (toDelete !== undefined) { | ||||
|             for (const toDeleteElement of toDelete) { | ||||
|                 this._callbacks.splice(this._callbacks.indexOf(toDeleteElement), 1) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue