[KSS-checkins] r42289 - kukit/kukit.js/trunk/kukit

gotcha at codespeak.net gotcha at codespeak.net
Tue Apr 24 18:34:35 CEST 2007


Author: gotcha
Date: Tue Apr 24 18:34:34 2007
New Revision: 42289

Modified:
   kukit/kukit.js/trunk/kukit/plugin.js
Log:
fix last checkin about insertedNodes

Modified: kukit/kukit.js/trunk/kukit/plugin.js
==============================================================================
--- kukit/kukit.js/trunk/kukit/plugin.js	(original)
+++ kukit/kukit.js/trunk/kukit/plugin.js	Tue Apr 24 18:34:34 2007
@@ -512,14 +512,14 @@
     var content = oper.parms.html;
     var parentNode = oper.node.parentNode;
     var toNode = kukit.dom.getNextSiblingTag(oper.node);
-    var inserted;
+    var insertedNodes;
     if (toNode == null) {
-        inserted = kukit.dom.appendChildren(content.childNodes, parentNode);
+        insertedNodes = kukit.dom.appendChildren(content.childNodes, parentNode);
     } else {
-        inserted = kukit.dom.insertBefore(content, parentNode, toNode);
+        insertedNodes = kukit.dom.insertBefore(content, parentNode, toNode);
     }
     // update the events for the new nodes
-    kukit.logDebug("Inserted nodes length: "+inserted.length);
+    kukit.logDebug("Inserted nodes length: "+insertedNodes.length);
     if (oper.parms.withKssSetup) {
         kukit.engine.setupEvents(insertedNodes);
     }
@@ -534,9 +534,9 @@
     var content = oper.parms.html;
     var toNode = oper.node;
     var parentNode = toNode.parentNode;
-    var inserted = kukit.dom.insertBefore(content, parentNode, toNode);
+    var insertedNodes = kukit.dom.insertBefore(content, parentNode, toNode);
     // update the events for the new nodes
-    kukit.logDebug("Inserted nodes length: "+inserted.length);
+    kukit.logDebug("Inserted nodes length: "+insertedNodes.length);
     if (oper.parms.withKssSetup) {
         kukit.engine.setupEvents(insertedNodes);
     }
@@ -548,10 +548,10 @@
                        'insertHTMLAsLastChild action');
     oper.evalBool('withKssSetup', 'setup events on inserted nodes');
     oper.parms.html = kukit.dom.forceToDom(oper.parms.html);
-    var inserted = kukit.dom.appendChildren(oper.parms.html, oper.node);
-    inserted = kukit.dom.appendChildren(oper.parms.html.childNodes, oper.node);
+    var insertedNodes = kukit.dom.appendChildren(oper.parms.html, oper.node);
+    insertedNodes = kukit.dom.appendChildren(oper.parms.html.childNodes, oper.node);
     // update the events for the new nodes
-    kukit.logDebug("Inserted nodes length: "+inserted.length);
+    kukit.logDebug("Inserted nodes length: "+insertedNodes.length);
     if (oper.parms.withKssSetup) {
         kukit.engine.setupEvents(insertedNodes);
     }
@@ -566,15 +566,16 @@
     var content = oper.parms.html;
     var parentNode = oper.node;
     var toNode = parentNode.firstChild;
+    var insertedNodes;
     if (toNode == null) {
-        inserted = kukit.dom.appendChildren(content.childNodes, parentNode);
+        insertedNodes = kukit.dom.appendChildren(content.childNodes, parentNode);
     } else {
-        inserted = kukit.dom.insertBefore(content, parentNode, toNode);
+        insertedNodes = kukit.dom.insertBefore(content, parentNode, toNode);
     }
     // update the events for the new nodes
-    kukit.logDebug("Inserted nodes length: "+inserted.length);
+    kukit.logDebug("Inserted nodes length: "+insertedNodes.length);
     if (oper.parms.withKssSetup) {
-        kukit.engine.setupEvents(insertedNodes);
+        kukit.engine.setupEvents(insertedNodesNodes);
     }
 });
 kukit.commandsGlobalRegistry.registerFromAction('insertHTMLAsFirstChild', kukit.cr.makeSelectorCommand);


More information about the Kukit-checkins mailing list