From: Aleksander Ɓukasz Date: Wed, 14 Aug 2013 12:09:06 +0000 (+0200) Subject: Fix: adding/clearing node widgets corrupted widgets on all children nodes X-Git-Url: https://git.mdrn.pl/fnpeditor.git/commitdiff_plain/2d37cb23154783cc89f2ff286405d02e594e0e46?ds=sidebyside Fix: adding/clearing node widgets corrupted widgets on all children nodes --- diff --git a/modules/documentCanvas/canvas/wlxmlManagers.js b/modules/documentCanvas/canvas/wlxmlManagers.js index 0aa9575..e70cfd2 100644 --- a/modules/documentCanvas/canvas/wlxmlManagers.js +++ b/modules/documentCanvas/canvas/wlxmlManagers.js @@ -11,11 +11,11 @@ var DocumentElementWrapper = function(documentElement) { this.documentElement = documentElement; this.addWidget = function(widget) { - documentElement.dom().find('.canvas-widgets').append(widget); + documentElement.dom().children('.canvas-widgets').append(widget); }; this.clearWidgets = function() { - documentElement.dom().find('.canvas-widgets').empty(); + documentElement.dom().children('.canvas-widgets').empty(); } this.setDisplayStyle = function(displayStyle) {