diff options
author | Jose Antonio Marquez | 2012-03-10 18:37:43 -0800 |
---|---|---|
committer | Jose Antonio Marquez | 2012-03-10 18:37:43 -0800 |
commit | 242bddd5b64c4a5226daa2f4caa10bf63c56403a (patch) | |
tree | 9e8327be823441717ad44684d0e3714c56116f39 /js/document | |
parent | 7d4d8651d059a91d29142d7f07d3122eb64532fa (diff) | |
download | ninja-242bddd5b64c4a5226daa2f4caa10bf63c56403a.tar.gz |
Add temp delay for webGL preview
Added a padded launch webGL preview delay. This is very temporary, just a work around until RDGE issues are fixed.
Diffstat (limited to 'js/document')
-rwxr-xr-x | js/document/html-document.js | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/js/document/html-document.js b/js/document/html-document.js index 79450494..051490f5 100755 --- a/js/document/html-document.js +++ b/js/document/html-document.js | |||
@@ -871,8 +871,12 @@ exports.HTMLDocument = Montage.create(TextDocument, { | |||
871 | value: function () { | 871 | value: function () { |
872 | //TODO: Add logic to handle save before preview | 872 | //TODO: Add logic to handle save before preview |
873 | this.application.ninja.documentController.handleExecuteSaveAll(null); | 873 | this.application.ninja.documentController.handleExecuteSaveAll(null); |
874 | //Launching 'blank' tab for testing movie | 874 | //Temp check for webGL Hack |
875 | window.open(this.application.ninja.coreIoApi.rootUrl+this.application.ninja.documentController._activeDocument.uri.split(this.application.ninja.coreIoApi.cloudData.root)[1]); | 875 | if (this.application.ninja.documentController.activeDocument.glData.length && this.application.ninja.documentController.activeDocument.glData.length > 0) { |
876 | setTimeout(function () {window.open(this.application.ninja.coreIoApi.rootUrl+this.application.ninja.documentController._activeDocument.uri.split(this.application.ninja.coreIoApi.cloudData.root)[1]);}.bind(this), 3500); | ||
877 | } else { | ||
878 | window.open(this.application.ninja.coreIoApi.rootUrl+this.application.ninja.documentController._activeDocument.uri.split(this.application.ninja.coreIoApi.cloudData.root)[1]); | ||
879 | } | ||
876 | //chrome.tabs.create({url: this.application.ninja.coreIoApi.rootUrl+this.application.ninja.documentController._activeDocument.uri.split(this.application.ninja.coreIoApi.cloudData.root)[1]}); | 880 | //chrome.tabs.create({url: this.application.ninja.coreIoApi.rootUrl+this.application.ninja.documentController._activeDocument.uri.split(this.application.ninja.coreIoApi.cloudData.root)[1]}); |
877 | } | 881 | } |
878 | }, | 882 | }, |