From 2d37cb23154783cc89f2ff286405d02e594e0e46 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Aleksander=20=C5=81ukasz?= Date: Wed, 14 Aug 2013 14:09:06 +0200 Subject: [PATCH 1/1] Fix: adding/clearing node widgets corrupted widgets on all children nodes --- modules/documentCanvas/canvas/wlxmlManagers.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) { -- 2.20.1