X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/cb97894506c25210fd9267397023c3adfb312a2c..039f0edb73590283bc38ef5421e670fa40ff2480:/modules/documentCanvas/canvas.js?ds=inline 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,