From: Aleksander Ɓukasz Date: Tue, 11 Feb 2014 13:34:44 +0000 (+0100) Subject: wlxml: small fix in list extension X-Git-Url: https://git.mdrn.pl/fnpeditor.git/commitdiff_plain/4b866f317d1e2e774e55127ba6bf598d61b363d8?ds=inline;hp=4ff93211ebf44be111ae2c00b7ee9c843ff6d7c9 wlxml: small fix in list extension Argument to setClass should be a string --- diff --git a/src/wlxml/extensions/list/list.js b/src/wlxml/extensions/list/list.js index 107743a..d17e3e3 100644 --- a/src/wlxml/extensions/list/list.js +++ b/src/wlxml/extensions/list/list.js @@ -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; });