aboutsummaryrefslogtreecommitdiff
path: root/js/ninja.reel
diff options
context:
space:
mode:
authorValerio Virgillito2012-02-17 15:27:26 -0800
committerValerio Virgillito2012-02-17 15:27:26 -0800
commitde4e42ce73ac12f63d95db2fdce87e57db5593fb (patch)
tree4329cfb5653f8be117de13567f46ed5d32c6c2d2 /js/ninja.reel
parent7789a48fab2b1541ef7ac1b94e14b3f8dccbb4ff (diff)
parent33b27df9b1e64eda709612902c690be35e040079 (diff)
downloadninja-de4e42ce73ac12f63d95db2fdce87e57db5593fb.tar.gz
Merge pull request #54 from joseeight/TabPreview
Tab preview
Diffstat (limited to 'js/ninja.reel')
-rwxr-xr-xjs/ninja.reel/ninja.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/js/ninja.reel/ninja.js b/js/ninja.reel/ninja.js
index 43087c39..399d7b4d 100755
--- a/js/ninja.reel/ninja.js
+++ b/js/ninja.reel/ninja.js
@@ -60,11 +60,18 @@ exports.Ninja = Montage.create(Component, {
60 this.eventManager.addEventListener( "onOpenDocument", this, false); 60 this.eventManager.addEventListener( "onOpenDocument", this, false);
61 61
62 this.addEventListener("change@appModel.livePreview", this.executeLivePreview, false); 62 this.addEventListener("change@appModel.livePreview", this.executeLivePreview, false);
63 this.addEventListener("change@appModel.chromePreview", this.executeChromePreview, false);
63 this.addEventListener("change@appModel.debug", this.toggleDebug, false); 64 this.addEventListener("change@appModel.debug", this.toggleDebug, false);
64 65
65 NJevent("appLoading"); 66 NJevent("appLoading");
66 } 67 }
67 }, 68 },
69
70 executeChromePreview: {
71 value: function () {
72 this.application.ninja.documentController.activeDocument.livePreview();
73 }
74 },
68 75
69 handleResize: { 76 handleResize: {
70 value: function() { 77 value: function() {