aboutsummaryrefslogtreecommitdiff
path: root/js/document/html-document.js
diff options
context:
space:
mode:
authorJose Antonio Marquez2012-03-06 11:24:25 -0800
committerJose Antonio Marquez2012-03-06 11:24:25 -0800
commit7271c25bf34917b1751f433d284f21485057425b (patch)
treef14f55c30eef561b02aafacf1aa9ceffc82570e1 /js/document/html-document.js
parent3c4967fa93b3abc529fc404115707307ba72d5cd (diff)
downloadninja-7271c25bf34917b1751f433d284f21485057425b.tar.gz
Fixing WebGL not available bug
Diffstat (limited to 'js/document/html-document.js')
-rwxr-xr-xjs/document/html-document.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/js/document/html-document.js b/js/document/html-document.js
index 3f39c4df..80930af2 100755
--- a/js/document/html-document.js
+++ b/js/document/html-document.js
@@ -770,7 +770,8 @@ exports.HTMLDocument = Montage.create(TextDocument, {
770 } 770 }
771 } 771 }
772 } 772 }
773 return {mode: 'html', document: this._userDocument, webgl: this.glData, styles: styles, head: this._templateDocument.head.innerHTML, body: this._templateDocument.body.innerHTML}; 773 //return {mode: 'html', document: this._userDocument, webgl: this.glData, styles: styles, head: this._templateDocument.head.innerHTML, body: this._templateDocument.body.innerHTML};
774 return {mode: 'html', document: this._userDocument, styles: styles, head: this._templateDocument.head.innerHTML, body: this._templateDocument.body.innerHTML};
774 } else if (this.currentView === "code"){ 775 } else if (this.currentView === "code"){
775 //TODO: Would this get call when we are in code of HTML? 776 //TODO: Would this get call when we are in code of HTML?
776 } else { 777 } else {
@@ -793,7 +794,8 @@ exports.HTMLDocument = Montage.create(TextDocument, {
793 } 794 }
794 } 795 }
795 } 796 }
796 return {mode: 'html', document: this._userDocument, webgl: this.glData, css: css, head: this._templateDocument.head.innerHTML, body: this._templateDocument.body.innerHTML}; 797 //return {mode: 'html', document: this._userDocument, webgl: this.glData, css: css, head: this._templateDocument.head.innerHTML, body: this._templateDocument.body.innerHTML};
798 return {mode: 'html', document: this._userDocument, css: css, head: this._templateDocument.head.innerHTML, body: this._templateDocument.body.innerHTML};
797 } else if (this.currentView === "code"){ 799 } else if (this.currentView === "code"){
798 //TODO: Would this get call when we are in code of HTML? 800 //TODO: Would this get call when we are in code of HTML?
799 } else { 801 } else {