aboutsummaryrefslogtreecommitdiff
path: root/js/ninja.reel/ninja.js
diff options
context:
space:
mode:
authorValerio Virgillito2012-06-28 16:24:24 -0700
committerValerio Virgillito2012-06-28 16:27:54 -0700
commitc5204cc96a08413d48bd8148034189b6f710ade9 (patch)
tree8f173f71aed2176b81cb3e9ece9f85561287c712 /js/ninja.reel/ninja.js
parent3ba9accb8e1887bfd6f1f912b6135073a3d9c70c (diff)
downloadninja-c5204cc96a08413d48bd8148034189b6f710ade9.tar.gz
Changing the livePreview button to do a chromePreview and keeping the canvas when doing a timeline play
Signed-off-by: Valerio Virgillito <valerio@motorola.com>
Diffstat (limited to 'js/ninja.reel/ninja.js')
-rwxr-xr-xjs/ninja.reel/ninja.js14
1 files changed, 2 insertions, 12 deletions
diff --git a/js/ninja.reel/ninja.js b/js/ninja.reel/ninja.js
index 859268a0..e325316b 100755
--- a/js/ninja.reel/ninja.js
+++ b/js/ninja.reel/ninja.js
@@ -511,25 +511,15 @@ exports.Ninja = Montage.create(Component, {
511 511
512 executeLivePreview: { 512 executeLivePreview: {
513 value: function() { 513 value: function() {
514 var background, overflow, transitionStopRule; 514 var transitionStopRule;
515 this.stage.hideCanvas(this.appModel.livePreview); 515// this.stage.hideCanvas(this.appModel.livePreview);
516 516
517 // TODO: Remove marker for old template: NINJA-STAGE-REWORK
518 if(this.appModel.livePreview) { 517 if(this.appModel.livePreview) {
519// background = "#000000";
520// overflow = "hidden";
521 transitionStopRule = "nj-css-garbage-selector"; 518 transitionStopRule = "nj-css-garbage-selector";
522 } else { 519 } else {
523// background = "#808080";
524// overflow = "visible";
525 transitionStopRule = "*" 520 transitionStopRule = "*"
526 } 521 }
527 522
528 // TODO: Remove marker for old template: NINJA-STAGE-REWORK
529// this.currentDocument.model.documentRoot.elementModel.controller.setProperty(this.currentDocument.model.documentRoot, "body-background", background);
530// this.currentDocument.model.documentRoot.elementModel.controller.setProperty(this.currentDocument.model.documentRoot, "overflow", overflow);
531// this.currentDocument.model.documentRoot.elementModel.controller.changeSelector(this.currentDocument.model.documentRoot, "transitionStopRule", transitionStopRule);
532
533 this.application.ninja.stylesController._stageStylesheet.rules[0].selectorText = transitionStopRule; 523 this.application.ninja.stylesController._stageStylesheet.rules[0].selectorText = transitionStopRule;
534 524
535 this._toggleWebGlAnimation(this.appModel.livePreview); 525 this._toggleWebGlAnimation(this.appModel.livePreview);