wlxml: lists - createList returns created list node
authorAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Tue, 22 Apr 2014 10:35:52 +0000 (12:35 +0200)
committerAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Tue, 22 Apr 2014 10:49:14 +0000 (12:49 +0200)
src/wlxml/extensions/list/list.js

index 2a996ac..85ab751 100644 (file)
@@ -77,6 +77,7 @@ extension.document.transformations.createList = {
         nodesToWrap.forEach(function(node) {
             listNode.append(node);
         });
         nodesToWrap.forEach(function(node) {
             listNode.append(node);
         });
+        return listNode;
     },
     getChangeRoot: function() {
         return this.args[0].node1.parent();
     },
     getChangeRoot: function() {
         return this.args[0].node1.parent();