diff options
author | Jose Antonio Marquez | 2012-03-06 11:24:25 -0800 |
---|---|---|
committer | Valerio Virgillito | 2012-03-06 11:25:41 -0800 |
commit | 1cd89d4d06e3a8f2c221628b19cf26a2c69f5d3f (patch) | |
tree | ee74458420e4fa3365e1ec512f2d3223e7c4509c /js/document | |
parent | 84332ab81c1b445195f1d9be8bbeae0725c8e758 (diff) | |
download | ninja-1cd89d4d06e3a8f2c221628b19cf26a2c69f5d3f.tar.gz |
Fixing WebGL not available bug
Diffstat (limited to 'js/document')
-rwxr-xr-x | js/document/html-document.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/js/document/html-document.js b/js/document/html-document.js index 5d507476..536fca47 100755 --- a/js/document/html-document.js +++ b/js/document/html-document.js | |||
@@ -668,7 +668,8 @@ exports.HTMLDocument = Montage.create(TextDocument, { | |||
668 | } | 668 | } |
669 | } | 669 | } |
670 | } | 670 | } |
671 | return {mode: 'html', document: this._userDocument, webgl: this.glData, styles: styles, head: this._templateDocument.head.innerHTML, body: this._templateDocument.body.innerHTML}; | 671 | //return {mode: 'html', document: this._userDocument, webgl: this.glData, styles: styles, head: this._templateDocument.head.innerHTML, body: this._templateDocument.body.innerHTML}; |
672 | return {mode: 'html', document: this._userDocument, styles: styles, head: this._templateDocument.head.innerHTML, body: this._templateDocument.body.innerHTML}; | ||
672 | } else if (this.currentView === "code"){ | 673 | } else if (this.currentView === "code"){ |
673 | //TODO: Would this get call when we are in code of HTML? | 674 | //TODO: Would this get call when we are in code of HTML? |
674 | } else { | 675 | } else { |
@@ -691,7 +692,8 @@ exports.HTMLDocument = Montage.create(TextDocument, { | |||
691 | } | 692 | } |
692 | } | 693 | } |
693 | } | 694 | } |
694 | return {mode: 'html', document: this._userDocument, webgl: this.glData, css: css, head: this._templateDocument.head.innerHTML, body: this._templateDocument.body.innerHTML}; | 695 | //return {mode: 'html', document: this._userDocument, webgl: this.glData, css: css, head: this._templateDocument.head.innerHTML, body: this._templateDocument.body.innerHTML}; |
696 | return {mode: 'html', document: this._userDocument, css: css, head: this._templateDocument.head.innerHTML, body: this._templateDocument.body.innerHTML}; | ||
695 | } else if (this.currentView === "code"){ | 697 | } else if (this.currentView === "code"){ |
696 | //TODO: Would this get call when we are in code of HTML? | 698 | //TODO: Would this get call when we are in code of HTML? |
697 | } else { | 699 | } else { |