wlxml: small fix in list extension
authorAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Tue, 11 Feb 2014 13:34:44 +0000 (14:34 +0100)
committerAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Tue, 11 Feb 2014 13:42:19 +0000 (14:42 +0100)
Argument to setClass should be a string

src/wlxml/extensions/list/list.js

index 107743a..d17e3e3 100644 (file)
@@ -109,7 +109,7 @@ extension.document.transformations.extractItems = {
                 reference.after(item);
                 reference = item;
                 if(!listIsNested) {
-                    item.setClass(null);
+                    item.setClass('');
                 }
             });
             if(precedingItems.length === 0) {
@@ -119,14 +119,14 @@ extension.document.transformations.extractItems = {
             extractedItems.forEach(function(item) {
                 reference.before(item);
                 if(!listIsNested) {
-                    item.setClass(null);
+                    item.setClass('');
                 }
             });
         } else {
             extractedItems.forEach(function(item) {
                 reference.after(item);
                 if(!listIsNested) {
-                    item.setClass(null);
+                    item.setClass('');
                 }
                 reference = item;
             });