Removing unused code
[fnpeditor.git] / modules / documentCanvas / transformations.js
index 4824849..2b5a5eb 100644 (file)
@@ -72,7 +72,7 @@ define(['libs/jquery-1.9.1.min'], function($) {
     transformations.toXML = {\r
         getXML: function(body) {\r
             \r
     transformations.toXML = {\r
         getXML: function(body) {\r
             \r
-            var inner = $(body);\r
+            var inner = body.clone();\r
             var toret = $('<div></div>');\r
             toret.append(inner);\r
             \r
             var toret = $('<div></div>');\r
             toret.append(inner);\r
             \r