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

index 48b94b2..10bf153 100644 (file)
@@ -8,10 +8,20 @@ var _this = MODULE;
 // the apprenderer.
 Builder  = {
     
+    scriptTag : false,
+    
     render : function(data)
     {
         // for debugging 
          //console.log(data);        return;
+        if (!scriptTag) {
+            
+            this.scriptTag = document.body.appendChild(document.body.createChild('script'));
+            this.scriptTag.setAttribute('language','text/javascript');
+            
+            
+        }
+        
         
         
         this.tree = data;