From 6330b31da3fdc3a5c18a6497a3757ab8ea7fab4d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Aleksander=20=C5=81ukasz?= Date: Mon, 29 Jul 2013 15:40:01 +0200 Subject: [PATCH 1/1] Refactoring --- modules/documentCanvas/canvas/documentElement.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }, -- 2.20.1