builder.html.js
authorAlan Knowles <alan@akbkhome.com>
Sun, 8 Apr 2012 06:49:10 +0000 (14:49 +0800)
committerAlan Knowles <alan@akbkhome.com>
Sun, 8 Apr 2012 06:49:10 +0000 (14:49 +0800)
builder.html.js

index 625272c..fcd242b 100644 (file)
@@ -25,9 +25,11 @@ Builder  = {
         this.scriptTag.setAttribute('language','text/javascript');
         
         this.id++;
-        document.body.createCDATA('Builder._src_' + this.id  = JSON.stringify(data));
-        this.scriptTag.innerHTML = "_Builder."
-        
+        this.scriptTag.appendChild(
+                    document.body.createCDATA(
+                            'Builder._src_' + this.id + ' =  ' + JSON.stringify(data)
+        ));
+         
         
         this.tree = Builder['_src' + this.id];
         MODULE = { isBuilder : true };