X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/5d2695bd243591aa1697733184d07cdb3e67cf74..e789468531597875c9c171d0554230856d40a2b9:/src/editor/modules/documentCanvas/canvas/container.js?ds=sidebyside diff --git a/src/editor/modules/documentCanvas/canvas/container.js b/src/editor/modules/documentCanvas/canvas/container.js index 6436526..069c78a 100644 --- a/src/editor/modules/documentCanvas/canvas/container.js +++ b/src/editor/modules/documentCanvas/canvas/container.js @@ -14,7 +14,7 @@ var Container = function(nodes, params, element) { this.element = element; nodes.forEach(function(node) { - var el = this.element.canvas.createElement(node); + var el = this.element.createElement(node); if(el.dom) { this.dom.append(el.dom); } @@ -102,7 +102,7 @@ _.extend(Container.prototype, { if(param instanceof documentElement.DocumentElement) { element = param; } else { - element = this.element.canvas.createElement(param);// + element = this.element.createElement(param);// } if(element.dom) { this.dom.prepend(element.dom);