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

index fcd242b..2de6c95 100644 (file)
@@ -16,9 +16,9 @@ Builder  = {
     {
         // for debugging 
          //console.log(data);        return;
-        if (scriptTag) { 
-            document.body.removeChild(scriptTag);
-            scriptTag = false;
+        if (this.scriptTag) { 
+            document.body.removeChild(this.scriptTag);
+            this.scriptTag = false;
         }
         
         this.scriptTag = document.body.appendChild(document.body.createElement('script'));