From: Aleksander Ɓukasz Date: Mon, 1 Jul 2013 10:11:50 +0000 (+0200) Subject: Fix: Removing enumerated lists X-Git-Url: https://git.mdrn.pl/fnpeditor.git/commitdiff_plain/1a4d6b49606d80cb8d9ab1ca9c532460aa3f0863 Fix: Removing enumerated lists --- diff --git a/modules/documentCanvas/canvas.js b/modules/documentCanvas/canvas.js index b4b9c29..a1f516d 100644 --- a/modules/documentCanvas/canvas.js +++ b/modules/documentCanvas/canvas.js @@ -201,7 +201,7 @@ Canvas.prototype.listCreate = function(options) { Canvas.prototype.listRemove = function(options) { var pointerElement = $(this.content.find('#' + options.pointer.getId())); - var listElement = options.pointer.getClass() === 'list-items' ? pointerElement : + var listElement = options.pointer.isOfClass('list-items') ? pointerElement : pointerElement.parents('[wlxml-class|="list-items"][wlxml-tag]'); var nested = false,