From: Aleksander Ɓukasz Date: Mon, 29 Jul 2013 13:40:01 +0000 (+0200) Subject: Refactoring X-Git-Url: https://git.mdrn.pl/fnpeditor.git/commitdiff_plain/6330b31da3fdc3a5c18a6497a3757ab8ea7fab4d?ds=sidebyside;hp=75e7ee4a984c04ac54d14f7ac56be71130c9a1d3 Refactoring --- diff --git a/modules/documentCanvas/canvas/documentElement.js b/modules/documentCanvas/canvas/documentElement.js index 9ddf190..5eef4b5 100644 --- a/modules/documentCanvas/canvas/documentElement.js +++ b/modules/documentCanvas/canvas/documentElement.js @@ -292,7 +292,7 @@ $.extend(DocumentNodeElement.prototype, { this.dom().removeAttr('wlxml-class'); }, is: function(what) { - if(what === 'list' && _.contains(['list-items', 'list-items-enum'], this.dom().attr('wlxml-class'))) + if(what === 'list' && _.contains(['list.items', 'list.items.enum'], this.getWlxmlClass())) return true; return false; },