smartxml: fix - DocumentNode.getIndex() now handles node being out of document tree
[fnpeditor.git] / src / wlxml / extensions / list / list.js
index 75b5336..6cac91b 100644 (file)
@@ -135,7 +135,7 @@ extension.document.transformations.extractItems = {
             reference.after(toAdd);
         }
         if(!params.merge && listIsNested) {
             reference.after(toAdd);
         }
         if(!params.merge && listIsNested) {
-            return this.transform('extractItems', {item1: extractedItems[0], item2: extractedItems[extractedItems.length-1]});
+            return this.extractItems({item1: extractedItems[0], item2: extractedItems[extractedItems.length-1]});
         }
         return true;
     },
         }
         return true;
     },