X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/869d237d2f1675068423f664f13ce5b0f8707218..a77e53b783db30a8e6e7935ddabe158a67e4221f:/src/editor/modules/documentCanvas/canvas/documentElement.js diff --git a/src/editor/modules/documentCanvas/canvas/documentElement.js b/src/editor/modules/documentCanvas/canvas/documentElement.js index e374a86..45592ef 100644 --- a/src/editor/modules/documentCanvas/canvas/documentElement.js +++ b/src/editor/modules/documentCanvas/canvas/documentElement.js @@ -112,7 +112,6 @@ $.extend(DocumentNodeElement.prototype, { detach: function() { var parents = this.parents(); this.dom.detach(); - this.canvas = null; if(parents[0]) { parents[0].refreshPath(); } @@ -188,7 +187,6 @@ $.extend(DocumentTextElement.prototype, { }, detach: function() { this.dom.detach(); - this.canvas = null; return this; }, setText: function(text) {