mirror of
				https://github.com/flynx/ImageGrid.git
				synced 2025-10-31 11:20:09 +00:00 
			
		
		
		
	notes and docs...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
		
							parent
							
								
									90f8f91aa4
								
							
						
					
					
						commit
						2028adef0e
					
				| @ -928,11 +928,9 @@ var BaseBrowserPrototype = { | |||||||
| 		// NOTE: this does not care about other semantics of the .update(..)
 | 		// NOTE: this does not care about other semantics of the .update(..)
 | ||||||
| 		// 		calls it drops (i.e. the options passed), only the first 
 | 		// 		calls it drops (i.e. the options passed), only the first 
 | ||||||
| 		// 		and last call in sequence get actually called.
 | 		// 		and last call in sequence get actually called.
 | ||||||
| 		// 		XXX is this correct???
 |  | ||||||
| 		//
 |  | ||||||
| 		// XXX should update handlers of canceled calls also be canceled???
 |  | ||||||
| 		updateTimeout: 30, | 		updateTimeout: 30, | ||||||
| 		// Sets the maximum time between .update(..) when calling updates 
 | 
 | ||||||
|  | 		// Maximum time between .update(..) calls when calling updates 
 | ||||||
| 		// in sequence...
 | 		// in sequence...
 | ||||||
| 		updateMaxDelay: 200, | 		updateMaxDelay: 200, | ||||||
| 
 | 
 | ||||||
| @ -3227,7 +3225,6 @@ var BaseBrowserPrototype = { | |||||||
| 	// XXX should we force calling update if options are given???
 | 	// XXX should we force calling update if options are given???
 | ||||||
| 	// 		...and should full get passed if at least one call in sequence
 | 	// 		...and should full get passed if at least one call in sequence
 | ||||||
| 	// 		got a full=true???
 | 	// 		got a full=true???
 | ||||||
| 	// XXX should we cancel update handlers of delayed calls???
 |  | ||||||
| 	__update_full: undefined, | 	__update_full: undefined, | ||||||
| 	__update_args: undefined, | 	__update_args: undefined, | ||||||
| 	__update_timeout: undefined, | 	__update_timeout: undefined, | ||||||
| @ -3241,6 +3238,15 @@ var BaseBrowserPrototype = { | |||||||
| 			full = full === options ?  | 			full = full === options ?  | ||||||
| 				false  | 				false  | ||||||
| 				: full | 				: full | ||||||
|  | 			// NOTE: we can't simply use _update(..) closure for this as
 | ||||||
|  | 			// 		it can be called out of two contexts (timeout and 
 | ||||||
|  | 			// 		max_timeout), one (timeout) is renewed on each call 
 | ||||||
|  | 			// 		thus storing the latest args, while the other (i.e.
 | ||||||
|  | 			// 		max_timeout) is not renewed until it is actually 
 | ||||||
|  | 			// 		called and thus would store the args at the time of 
 | ||||||
|  | 			// 		its setTimeout(..)...
 | ||||||
|  | 			// 		storing the arguments in .__update_args would remove
 | ||||||
|  | 			// 		this inconsistency...
 | ||||||
| 			var args = this.__update_args = [ | 			var args = this.__update_args = [ | ||||||
| 				[evt, full,  | 				[evt, full,  | ||||||
| 					...(options ?  | 					...(options ?  | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user