mirror of
				https://github.com/flynx/ImageGrid.git
				synced 2025-10-30 19:00:09 +00:00 
			
		
		
		
	notes and experiments...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
		
							parent
							
								
									9b3a5007f3
								
							
						
					
					
						commit
						6f2a15fa2d
					
				| @ -302,6 +302,8 @@ var callItemEventHandlers = function(item, event, evt, ...args){ | |||||||
| // NOTE: item events do not directly trigger the original caller's handlers
 | // NOTE: item events do not directly trigger the original caller's handlers
 | ||||||
| // 		those will get celled recursively when the events are propagated
 | // 		those will get celled recursively when the events are propagated
 | ||||||
| // 		up the tree.
 | // 		up the tree.
 | ||||||
|  | //
 | ||||||
|  | // XXX need reasonable default item selections...
 | ||||||
| var makeItemEventMethod = function(event, handler, options){ | var makeItemEventMethod = function(event, handler, options){ | ||||||
| 	options = Object.assign( | 	options = Object.assign( | ||||||
| 		// NOTE: we need to be able to pass item objects, so we can not
 | 		// NOTE: we need to be able to pass item objects, so we can not
 | ||||||
| @ -1799,6 +1801,7 @@ var BaseBrowserPrototype = { | |||||||
| 	// 		-> state
 | 	// 		-> state
 | ||||||
| 	//
 | 	//
 | ||||||
| 	// XXX should this be an event???
 | 	// XXX should this be an event???
 | ||||||
|  | 	// XXX calling this on a nested browser should update the whole thing...
 | ||||||
| 	update: function(options){ | 	update: function(options){ | ||||||
| 		return this | 		return this | ||||||
| 			.make(options) | 			.make(options) | ||||||
| @ -2016,6 +2019,7 @@ var BaseBrowserPrototype = { | |||||||
| 	// 	.focus(query[, ...])
 | 	// 	.focus(query[, ...])
 | ||||||
| 	// 		-> this
 | 	// 		-> this
 | ||||||
| 	//
 | 	//
 | ||||||
|  | 	// XXX need reasonable default item selections...
 | ||||||
| 	focus: makeItemEventMethod('focus', function(evt, items){ | 	focus: makeItemEventMethod('focus', function(evt, items){ | ||||||
| 		// blur .focused...
 | 		// blur .focused...
 | ||||||
| 		this.focused | 		this.focused | ||||||
| @ -2043,6 +2047,16 @@ var BaseBrowserPrototype = { | |||||||
| 	// XXX target can be item or path...
 | 	// XXX target can be item or path...
 | ||||||
| 	load: makeEventMethod('load', function(evt, item){}), | 	load: makeEventMethod('load', function(evt, item){}), | ||||||
| 
 | 
 | ||||||
|  | 	// XXX should we be able to update specific items???
 | ||||||
|  | 	// XXX should a normal event trigger children down the tree???
 | ||||||
|  | 	// XXX should we have a pre/post events???
 | ||||||
|  | 	/* | ||||||
|  | 	update: makeEventMethod('update', function(evt, options){ | ||||||
|  | 		return this | ||||||
|  | 			.make(options) | ||||||
|  | 			.render(options) }), | ||||||
|  | 	//*/
 | ||||||
|  | 
 | ||||||
| 	close: makeEventMethod('close', function(evt, reason){}), | 	close: makeEventMethod('close', function(evt, reason){}), | ||||||
| 	 | 	 | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user