mirror of
				https://github.com/flynx/ImageGrid.git
				synced 2025-10-30 10:50:08 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			41 lines
		
	
	
		
			842 B
		
	
	
	
		
			JavaScript
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			41 lines
		
	
	
		
			842 B
		
	
	
	
		
			JavaScript
		
	
	
		
			Executable File
		
	
	
	
	
| define(function(require){ var module = {}
 | |
| /**********************************************************************
 | |
| * 
 | |
| *
 | |
| *
 | |
| **********************************************************************/
 | |
| 
 | |
| //var DEBUG = DEBUG != null ? DEBUG : true
 | |
| 
 | |
| 
 | |
| /*********************************************************************/
 | |
| 
 | |
| 
 | |
| // proof of run...
 | |
| console.log('111')
 | |
| 
 | |
| // this is global (F*CK!!)...
 | |
| GLOBAL = 123
 | |
| 
 | |
| // this is not global...
 | |
| // XXX did I say I hate this CommonJS dance?
 | |
| var func =
 | |
| module.func = 
 | |
| function func(){
 | |
| 	console.log('>>> func!')
 | |
| }
 | |
| 
 | |
| var func =
 | |
| module._func = 
 | |
| function _func(){
 | |
| 	// closure test...
 | |
| 	console.log('>>> func!', func)
 | |
| }
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 | |
| /**********************************************************************
 | |
| * vim:set ts=4 sw=4 :                                                */
 | |
| return module })
 |