smartxml: Allow for describing node properties
[fnpeditor.git] / src / editor / modules / documentCanvas / canvas / documentElement.js
index e374a86..45592ef 100644 (file)
@@ -112,7 +112,6 @@ $.extend(DocumentNodeElement.prototype, {
     detach: function() {
         var parents = this.parents();
         this.dom.detach();
     detach: function() {
         var parents = this.parents();
         this.dom.detach();
-        this.canvas = null;
         if(parents[0]) {
             parents[0].refreshPath();
         }
         if(parents[0]) {
             parents[0].refreshPath();
         }
@@ -188,7 +187,6 @@ $.extend(DocumentTextElement.prototype, {
     },
     detach: function() {
         this.dom.detach();
     },
     detach: function() {
         this.dom.detach();
-        this.canvas = null;
         return this;
     },
     setText: function(text) {
         return this;
     },
     setText: function(text) {