mirror of
				https://github.com/flynx/ImageGrid.git
				synced 2025-10-31 11:20:09 +00:00 
			
		
		
		
	docs...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
		
							parent
							
								
									5342d3e7ca
								
							
						
					
					
						commit
						0edc34f470
					
				| @ -107,7 +107,12 @@ | |||||||
| // 	state_accessor(<elem>, <new-state>)
 | // 	state_accessor(<elem>, <new-state>)
 | ||||||
| // 		-> <new-state>
 | // 		-> <new-state>
 | ||||||
| //
 | //
 | ||||||
| // `this' within <state_accessor> is set to toggler's context.
 | // `this' within state_accessor is set to toggler's context.
 | ||||||
|  | // 
 | ||||||
|  | // The value returned by state_accessor is returned by the toggler. To pass
 | ||||||
|  | // control over the return value back to the Toggler logic when setting 
 | ||||||
|  | // the state (i.e. when <new_state> is passed) state_accessor has to 
 | ||||||
|  | // return null.
 | ||||||
| // 
 | // 
 | ||||||
| // NOTE: for single state toggling, 'none' will get passed to 
 | // NOTE: for single state toggling, 'none' will get passed to 
 | ||||||
| // 		state_accessor to indicate an "empty" state...
 | // 		state_accessor to indicate an "empty" state...
 | ||||||
| @ -257,7 +262,7 @@ function(elem, state_accessor, states, callback_a, callback_b){ | |||||||
| 		// pre callback...
 | 		// pre callback...
 | ||||||
| 		if(callback_pre != null){ | 		if(callback_pre != null){ | ||||||
| 			if(callback_pre.apply(this, [action, e].concat(args)) === false){ | 			if(callback_pre.apply(this, [action, e].concat(args)) === false){ | ||||||
| 				//return
 | 				// return current state...
 | ||||||
| 				return func.call(this, '?') | 				return func.call(this, '?') | ||||||
| 			} | 			} | ||||||
| 		} | 		} | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user