--- web/static/yui-debug.js.orig Sat Mar 10 02:15:00 2012
+++ web/static/yui-debug.js Sat Mar 10 12:26:29 2012
@@ -869,10 +869,13 @@
r = [],
ret = true,
fetchCSS = config.fetchCSS,
- process = function(names, skip) {
-
- var i = 0, a = [];
-
+ process = function(names, skip, indent) {
+ var prefix = function(indent) {
+ var l = indent.length/4;
+ var label = "ABCDEFGHJIKLMNOPQRSTUVWXYZ";
+ return label.charAt(l-1) + indent;
+ };
+ var i = 0, a = [], indent = indent || "";
if (!names.length) {
return;
}
@@ -881,6 +884,7 @@
for (i = 0; i < names.length; i++) {
if (aliases[names[i]]) {
a = [].concat(a, aliases[names[i]]);
+Y.log(prefix(indent) + "ALIAS: " + names[i] + ' = ' + aliases[names[i]].join(', '), 'info');
} else {
a.push(names[i]);
}
@@ -887,9 +891,9 @@
}
names = a;
}
-
+ indent += " ";
YArray.each(names, function(name) {
-
+ Y.log(prefix(this) + "CHECK: " + name, 'info');
// add this module to full list of things to attach
if (!skip) {
r.push(name);
@@ -897,6 +901,7 @@
// only attach a module once
if (used[name]) {
+ Y.log(prefix(this) + "DONE: " + name, 'info');
return;
}
@@ -910,6 +915,7 @@
// CSS files don't register themselves, see if it has
// been loaded
if (!G_ENV._loaded[VERSION][name]) {
+ Y.log(prefix(this) + "MISSING: " + name, 'warn');
missing.push(name);
} else {
used[name] = true; // probably css
@@ -918,14 +924,17 @@
// make sure requirements are attached
if (req && req.length) {
- process(req);
+ Y.log(prefix(this) + "REQUIRES: " + req.join(', '), 'info');
+ process(req, 0, this);
}
// make sure we grab the submodule dependencies too
if (use && use.length) {
- process(use, 1);
+ Y.log(prefix(this) + "USES: " + use.join(', '), 'info');
+ process(use, 1, this);
}
- });
+ Y.log(prefix(this) + "DONE: " + name, 'info');
+ }, indent);
},
handleLoader = function(fromLoader) {
@@ -28062,7 +28071,7 @@
var i,l, etCached, et,touchCache;
- Y.log("Calling facade._touch() with e = " + e);
+ // Y.log("Calling facade._touch() with e = " + e); // too havy
if (e.touches) {
Y.log("Found e.touches. Replicating on facade");
@@ -33066,7 +33075,7 @@
* @for YUI
* @param {String} msg The message to log.
* @param {String} cat The log category for the message. Default
- * categories are "info", "warn", "error", time".
+ * categories are "info", "warn", "error", debug".
* Custom categories can be used as well. (opt).
* @param {String} src The source of the the message (opt).
* @param {boolean} silent If true, the log event won't fire.