Author: reebalazs
Date: Mon May 14 13:48:43 2007
New Revision: 43360

Modified:
   kukit/kukit.js/branch/ree-stripout-comments/kukit/plugin.js
Log:
Fix the moveNodeBefore action, the wrong parent node was used and remoeChild is 
not needed.

Modified: kukit/kukit.js/branch/ree-stripout-comments/kukit/plugin.js
==============================================================================
--- kukit/kukit.js/branch/ree-stripout-comments/kukit/plugin.js (original)
+++ kukit/kukit.js/branch/ree-stripout-comments/kukit/plugin.js Mon May 14 
13:48:43 2007
@@ -745,9 +745,11 @@
     ;;; oper.componentname = 'moveNodeBefore action';
     ;;; oper.completeParms(['html_id'], {});
     var node = oper.node;
-    var parentNode = node.parentNode;
-    parentNode.removeChild(node);
+    // no need to remove it, as insertNode does it anyway
+    // var parentNode = node.parentNode;
+    // parentNode.removeChild(node);
     var toNode = document.getElementById(oper.parms.html_id);
+    var parentNode = toNode.parentNode;
     parentNode.insertBefore(node, toNode);
 });
 kukit.commandsGlobalRegistry.registerFromAction('moveNodeBefore', 
kukit.cr.makeSelectorCommand);
_______________________________________________
Kukit-checkins mailing list
[email protected]
http://codespeak.net/mailman/listinfo/kukit-checkins

Reply via email to