mirror of
				https://github.com/esiur/esiur-js.git
				synced 2025-10-29 17:10:30 +00:00 
			
		
		
		
	TriggerChunk
This commit is contained in:
		| @@ -87,6 +87,9 @@ export default class AsyncReply extends Promise | ||||
|  | ||||
|     trigger(result) | ||||
|     { | ||||
|         if (this.ready) | ||||
|             return; | ||||
|  | ||||
|         this.result = result; | ||||
|         this.ready = true; | ||||
|  | ||||
| @@ -114,18 +117,12 @@ export default class AsyncReply extends Promise | ||||
|  | ||||
|     triggerProgress(type, value, max) | ||||
|     { | ||||
|         if (this.ready) | ||||
|             return; | ||||
|  | ||||
|         for(var i = 0; i < this.progressCallbacks.length; i++) | ||||
|             this.progressCallbacks[i](type, value, max, this); | ||||
|     } | ||||
|  | ||||
|     triggerChunk(value) | ||||
|     { | ||||
|         if (this.ready) | ||||
|             return; | ||||
|  | ||||
|         for(var i = 0; i < this.chunkCallbacks.length; i++) | ||||
|             this.chunkCallbacks[i](value, this); | ||||
|     } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user