get-debug.js revision 0c7c93f66f5b0af032703f26632682b685b26be5
/**
* NodeJS specific Get module used to load remote resources. It contains the same signature as the default Get module so there is no code change needed.
* Note: There is an added method called Get.domScript, which is the same as Get.script in a browser, it simply loads the script into the dom tree
* so that you can call outerHTML on the document to print it to the screen.
* @module get-nodejs
*/
//Y.log('Get end: ' + cb.onEnd);
}
//Y.log('Get pass: ' + cb.onSuccess);
}
//Y.log('Get fail: ' + er);
}
};
Y.Get = function() {};
/**
* Override for Get.script for loading local or remote YUI modules.
*/
var A = Y.Array,
for (i=0; i<l; i++) {
include(url, function(err) {
if (!Y.config) {
Y.config = {
debug: true
};
}
if (err) {
if (err.stack) {
A.each(err.stack.split('\n'), function(frame) {
});
} else {
console.log(err);
}
} else {
pass(cb);
}
});
}
};
var include = function(url, cb) {
var script = vm.createScript(mod, url);
var box = {
YUI: YUI
};
script.runInNewContext(box);
cb();
};