mirror of
				https://github.com/flynx/ImageGrid.git
				synced 2025-10-29 18:30:09 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			34 lines
		
	
	
		
			886 B
		
	
	
	
		
			JavaScript
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			34 lines
		
	
	
		
			886 B
		
	
	
	
		
			JavaScript
		
	
	
		
			Executable File
		
	
	
	
	
| /**********************************************************************
 | |
| * 
 | |
| *
 | |
| **********************************************************************/
 | |
| 
 | |
| // list of functions to setup different bindings
 | |
| //
 | |
| // each function must be of the form:
 | |
| // 	setupBinding(viewer) -> viewer
 | |
| //
 | |
| // NOTE: we are not using an event handler here as the DOM might not yet
 | |
| // 		be loaded...
 | |
| // XXX still need to think about this...
 | |
| var SETUP_BINDINGS = []
 | |
| 
 | |
| 
 | |
| 
 | |
| /*********************************************************************/
 | |
| 
 | |
| function setupDataBindings(viewer){
 | |
| 	viewer = viewer == null ? $('.viewer') : viewer
 | |
| 
 | |
| 	// see SETUP_BINDINGS definition for docs...
 | |
| 	SETUP_BINDINGS.forEach(function(setup){
 | |
| 		setup(viewer)
 | |
| 	})
 | |
| 
 | |
| }
 | |
| 
 | |
| 
 | |
| 
 | |
| /**********************************************************************
 | |
| * vim:set ts=4 sw=4 :                                                */
 |