ImageGrid/ui (gen4)/test-module.js
Alex A. Naanou 8897b5d5d0 started testing RequireJS module system, so far I hate it\!
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
2014-07-21 16:38:51 +04:00

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 })