lib/define.js
function define(id, deps, exp) {
		if (!exp) { exp = deps; deps = [ 'require', 'exports', 'module' ]; }
		var module = getModule(undefined, id);
		module.children = map(deps, function(dep) { return getModule(module, dep); });
		module.loaded = true;
		factories[id] = exp;
		fireWaits(module);
	}
function define(id, deps, exp) {
		if (!exp) { exp = deps; deps = [ 'require', 'exports', 'module' ]; }
		var module = getModule(undefined, id);
		module.children = map(deps, function(dep) { return getModule(module, dep); });
		module.loaded = true;
		factories[id] = exp;
		fireWaits(module);
	}
function define ( id , deps , exp ) { if ( ! exp ) { exp = deps ; deps = [ 'require' , 'exports' , 'module' ] ; } var module = getModule ( undefined , id ) ; module . children = map ( deps , function ( dep ) { return getModule ( module , dep ) ; } ) ; module . loaded = true ; factories [ id ] = exp ; fireWaits ( module ) ; }
define a new module
define a new module