aboutsummaryrefslogtreecommitdiff
path: root/js/ninja.reel/ninja.js
diff options
context:
space:
mode:
authorArmen Kesablyan2012-05-17 14:01:38 -0700
committerArmen Kesablyan2012-05-17 14:01:38 -0700
commit6c8f3525b839e82cf43df43700a0160ee2c5458f (patch)
tree3fb801fa54b759c5568d75bb467e02652ce77c3e /js/ninja.reel/ninja.js
parente8ae5db7ce7023b638375cbc27a3f7b7a2f77b23 (diff)
parent342c97ac9b727b22a7b0bfefca4d2a168bc3055b (diff)
downloadninja-6c8f3525b839e82cf43df43700a0160ee2c5458f.tar.gz
Merge branch 'refs/heads/dom-architecture' into binding
Conflicts: css/ninja.css scss/imports/scss/_toolbar.scss Signed-off-by: Armen Kesablyan <armen@motorola.com>
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 }