Fix: Removing enumerated lists
authorAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Mon, 1 Jul 2013 10:11:50 +0000 (12:11 +0200)
committerAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Mon, 1 Jul 2013 10:11:50 +0000 (12:11 +0200)
modules/documentCanvas/canvas.js

index b4b9c29..a1f516d 100644 (file)
@@ -201,7 +201,7 @@ Canvas.prototype.listCreate = function(options) {
 
 Canvas.prototype.listRemove = function(options) {
     var pointerElement = $(this.content.find('#' + options.pointer.getId()));
 
 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,
         pointerElement.parents('[wlxml-class|="list-items"][wlxml-tag]');
     
     var nested = false,