code: function(deps, cb, refPath) {
  		var unreadyModules = [];
  
  		for (var i = deps.length; i--;) {
  			var moduleId = resolveModuleId(deps[i], refPath),
  				module = getModule(moduleId);
  
  			if (!areDeepDepsDefined(moduleId)) {
  				unreadyModules.push(moduleId);
  			}
  		}
  
  		if (unreadyModules.length) {
  			addCallback(unreadyModules, function() {
  				cb(createRequireFunc(refPath));
  			});
  			queueModules(unreadyModules);
  		}
  		else {
  			setTimeout(function() {
  				cb(createRequireFunc(refPath));
  			}, 0);
  		}
  	}
docs: Generic implementation of require.ensure() which takes a reference path to use when resolving relative module IDs