[KSS-checkins] r45740 - kukit/kukit.js/branch/gotcha-code-cleanup/kukit

gotcha at codespeak.net gotcha at codespeak.net
Thu Aug 16 18:34:35 CEST 2007


Author: gotcha
Date: Thu Aug 16 18:34:35 2007
New Revision: 45740

Modified:
   kukit/kukit.js/branch/gotcha-code-cleanup/kukit/kssparser.js
   kukit/kukit.js/branch/gotcha-code-cleanup/kukit/oper.js
Log:
add missing msg; initialize error correctly

Modified: kukit/kukit.js/branch/gotcha-code-cleanup/kukit/kssparser.js
==============================================================================
--- kukit/kukit.js/branch/gotcha-code-cleanup/kukit/kssparser.js	(original)
+++ kukit/kukit.js/branch/gotcha-code-cleanup/kukit/kssparser.js	Thu Aug 16 18:34:35 2007
@@ -691,7 +691,7 @@
 ;;;             kukit.E = 'Undefined event : [';
 ;;;             kukit.E += rule.kssSelector.namespace;
 ;;;             kukit.E += ':' + rule.kssSelector.name + '].';
-;;;             throw new kukit.err.tk.ParsingError(msg);
+;;;             throw new kukit.err.tk.ParsingError(kukit.E);
 ;;;         }
             this.rules.push(rule);
         }

Modified: kukit/kukit.js/branch/gotcha-code-cleanup/kukit/oper.js
==============================================================================
--- kukit/kukit.js/branch/gotcha-code-cleanup/kukit/oper.js	(original)
+++ kukit/kukit.js/branch/gotcha-code-cleanup/kukit/oper.js	Thu Aug 16 18:34:35 2007
@@ -146,7 +146,7 @@
 ;;;     var msg = nodes.length + ' nodes found for action [' + name + '].';
 ;;;     kukit.logDebug(msg);
 ;;;     if (!nodes || nodes.length == 0) {
-;;;         kukit.logWarning();
+;;;         kukit.logWarning('Action selector found no nodes.');
 ;;;     }
         for (var i=0; i < nodes.length; i++) {
             this.node = nodes[i];


More information about the Kukit-checkins mailing list