Fix in transformations
authorAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Fri, 28 Jun 2013 08:02:02 +0000 (10:02 +0200)
committerAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Fri, 28 Jun 2013 08:02:02 +0000 (10:02 +0200)
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