[KSS-checkins] r39917 - kukit/kukit.js/trunk/kukit
reebalazs at codespeak.net
reebalazs at codespeak.net
Sun Mar 4 19:51:02 CET 2007
Author: reebalazs
Date: Sun Mar 4 19:51:00 2007
New Revision: 39917
Modified:
kukit/kukit.js/trunk/kukit/oper.js
Log:
Add logging for client actions
Modified: kukit/kukit.js/trunk/kukit/oper.js
==============================================================================
--- kukit/kukit.js/trunk/kukit/oper.js (original)
+++ kukit/kukit.js/trunk/kukit/oper.js Sun Mar 4 19:51:00 2007
@@ -124,6 +124,13 @@
}
//
// XXX TODO refactor this with commands execution (or the other way)
+ var nodetext = function(node) {
+ if (node) {
+ return node.tagName.toLowerCase();
+ } else {
+ return 'DOCUMENT';
+ }
+ };
var executeActions = kukit.actionsGlobalRegistry.get(name);
if (nodes != null) {
kukit.logDebug('action Selector type selected nodes:' + nodes.length);
@@ -134,10 +141,12 @@
this.node = nodes[i];
//XXX error handling for wrong command name
//kukit.logDebug('action Name: ' + this.name);
+ kukit.logDebug('action Name: ' + name + ' executing on target (' + (i+1) + '/' + nodes.length + '): ' + nodetext(this.node));
executeActions(this);
}
} else {
// single node
+ kukit.logDebug('action Name: ' + name + ' executing on single target ' + nodetext(node));
executeActions(this);
}
};
More information about the Kukit-checkins
mailing list