canvas api: wrapElements
[fnpeditor.git] / modules / documentCanvas / canvas / documentElement.js
index 9768236..e76ba78 100644 (file)
@@ -83,6 +83,7 @@ $.extend(DocumentElement.prototype, {
     detach: function() {
         this.dom().detach();
         this.canvas = null;
+        return this;
     },
 
     markAsCurrent: function() {