From: Aleksander Ɓukasz Date: Thu, 8 Aug 2013 09:35:46 +0000 (+0200) Subject: Fix: missing canvas reference X-Git-Url: https://git.mdrn.pl/fnpeditor.git/commitdiff_plain/2c4b75ac7d96858f3a50377b6ac680327eaa57ec?ds=inline Fix: missing canvas reference --- diff --git a/modules/documentCanvas/canvas/documentElement.js b/modules/documentCanvas/canvas/documentElement.js index 1a2ef91..11e3471 100644 --- a/modules/documentCanvas/canvas/documentElement.js +++ b/modules/documentCanvas/canvas/documentElement.js @@ -74,7 +74,7 @@ $.extend(DocumentElement.prototype, { }, wrapWithNodeElement: function(wlxmlNode) { - var wrapper = DocumentNodeElement.create({tag: wlxmlNode.tag, klass: wlxmlNode.klass}); + var wrapper = DocumentNodeElement.create({tag: wlxmlNode.tag, klass: wlxmlNode.klass}, this); this.dom().replaceWith(wrapper.dom()); wrapper.append(this); return wrapper;