mirror of
				https://github.com/flynx/ImageGrid.git
				synced 2025-11-04 05:10:07 +00:00 
			
		
		
		
	
		
			
	
	
		
			41 lines
		
	
	
		
			842 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
		
		
			
		
	
	
			41 lines
		
	
	
		
			842 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| 
								 | 
							
								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 })
							 |