diff options
author | Valerio Virgillito | 2012-03-12 16:25:47 -0700 |
---|---|---|
committer | Valerio Virgillito | 2012-03-12 16:25:47 -0700 |
commit | c24f58c10231c30d3a8a4c9fb9a4f395dd746180 (patch) | |
tree | a0be6ee1daa3e21ed7df483721bc3116e4c20006 /js/ninja.reel/ninja.js | |
parent | ac2db49e51f82f5a1cf52ec854b047e007ffbdd7 (diff) | |
download | ninja-c24f58c10231c30d3a8a4c9fb9a4f395dd746180.tar.gz |
Merge dhg637 DisabledState into master.
Committing Disabled states for tool-bar, tool-options, viewbar, breadcrumb
Signed-off-by: Valerio Virgillito <valerio@motorola.com>
Diffstat (limited to 'js/ninja.reel/ninja.js')
-rwxr-xr-x | js/ninja.reel/ninja.js | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/js/ninja.reel/ninja.js b/js/ninja.reel/ninja.js index 5af9bcdf..2a6e49f7 100755 --- a/js/ninja.reel/ninja.js +++ b/js/ninja.reel/ninja.js | |||
@@ -12,18 +12,6 @@ var matrix = require("js/lib/math/matrix"); | |||
12 | 12 | ||
13 | exports.Ninja = Montage.create(Component, { | 13 | exports.Ninja = Montage.create(Component, { |
14 | 14 | ||
15 | disabled: { | ||
16 | value: true | ||
17 | }, | ||
18 | |||
19 | handleCloseDocument: { | ||
20 | value: function(){ | ||
21 | if(!this.application.ninja.documentController.activeDocument) { | ||
22 | this.disabled = true; | ||
23 | } | ||
24 | } | ||
25 | }, | ||
26 | |||
27 | ninjaVersion: { | 15 | ninjaVersion: { |
28 | value: null | 16 | value: null |
29 | }, | 17 | }, |
@@ -69,7 +57,6 @@ exports.Ninja = Montage.create(Component, { | |||
69 | this.eventManager.addEventListener( "selectTool", this, false); | 57 | this.eventManager.addEventListener( "selectTool", this, false); |
70 | this.eventManager.addEventListener( "selectSubTool", this, false); | 58 | this.eventManager.addEventListener( "selectSubTool", this, false); |
71 | this.eventManager.addEventListener( "onOpenDocument", this, false); | 59 | this.eventManager.addEventListener( "onOpenDocument", this, false); |
72 | this.eventManager.addEventListener( "closeDocument", this, false); | ||
73 | 60 | ||
74 | this.addEventListener("change@appModel.livePreview", this.executeLivePreview, false); | 61 | this.addEventListener("change@appModel.livePreview", this.executeLivePreview, false); |
75 | this.addEventListener("change@appModel.chromePreview", this.executeChromePreview, false); | 62 | this.addEventListener("change@appModel.chromePreview", this.executeChromePreview, false); |
@@ -156,7 +143,6 @@ exports.Ninja = Montage.create(Component, { | |||
156 | this.currentDocument = event.detail; | 143 | this.currentDocument = event.detail; |
157 | 144 | ||
158 | this.appModel.show3dGrid = this.currentDocument.draw3DGrid; | 145 | this.appModel.show3dGrid = this.currentDocument.draw3DGrid; |
159 | this.disabled = false; | ||
160 | NJevent("openDocument"); | 146 | NJevent("openDocument"); |
161 | } | 147 | } |
162 | }, | 148 | }, |