smartxml: allow for removing node data for a specified key
[fnpeditor.git] / src / editor / modules / documentCanvas / canvas / genericElement.js
index 4bdc524..a2601f8 100644 (file)
@@ -105,6 +105,9 @@ $.extend(generic, {
       
         if(event.type === 'nodeMoved') {
             actionArg = utils.getElementForNode(event.meta.node, event.meta.parent);
+            if(actionArg.sameNode(referenceElement)) {
+                referenceElement = this.children()[nodeIndex];
+            }
         } else {
             actionArg = event.meta.node;
         }