aboutsummaryrefslogtreecommitdiff
path: root/js/ninja.reel/ninja.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/ninja.reel/ninja.js')
-rwxr-xr-xjs/ninja.reel/ninja.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/js/ninja.reel/ninja.js b/js/ninja.reel/ninja.js
index 537d7eb0..d97a5413 100755
--- a/js/ninja.reel/ninja.js
+++ b/js/ninja.reel/ninja.js
@@ -172,9 +172,9 @@ exports.Ninja = Montage.create(Component, {
172 172
173 this.application.ninja = this; 173 this.application.ninja = this;
174 174
175 this.toolsData.selectedTool = this.toolsData.defaultToolsData[0]; 175 this.toolsData.selectedTool = this.toolsData.defaultToolsData[this.application.ninja.toolsData.selectionToolIndex];
176 this.toolsData.defaultSubToolsData = this.toolsData.defaultToolsData[7].subtools; 176 this.toolsData.defaultSubToolsData = this.toolsData.defaultToolsData[this.application.ninja.toolsData.shapeToolIndex].subtools;
177 this.toolsData.selectedSubTool = this.toolsData.defaultToolsData[7].subtools[1]; 177 this.toolsData.selectedSubTool = this.toolsData.defaultToolsData[this.application.ninja.toolsData.shapeToolIndex].subtools[1];
178 this.toolsData.selectedToolInstance = this.toolsList[this.toolsData.selectedTool.action]; 178 this.toolsData.selectedToolInstance = this.toolsList[this.toolsData.selectedTool.action];
179 179
180 this.setupGlobalHelpers(); 180 this.setupGlobalHelpers();
@@ -185,9 +185,9 @@ exports.Ninja = Montage.create(Component, {
185 this.eventManager.addEventListener( "selectSubTool", this, false); 185 this.eventManager.addEventListener( "selectSubTool", this, false);
186 this.eventManager.addEventListener( "onOpenDocument", this, false); 186 this.eventManager.addEventListener( "onOpenDocument", this, false);
187 187
188 this.addEventListener("change@appModel.livePreview", this.executeLivePreview, false); 188 this.addPropertyChangeListener("appModel.livePreview", this.executeLivePreview, false);
189 this.addEventListener("change@appModel.chromePreview", this.executeChromePreview, false); 189 this.addPropertyChangeListener("appModel.chromePreview", this.executeChromePreview, false);
190 this.addEventListener("change@appModel.debug", this.toggleDebug, false); 190 this.addPropertyChangeListener("appModel.debug", this.toggleDebug, false);
191 191
192 NJevent("appLoading"); 192 NJevent("appLoading");
193 } 193 }