aboutsummaryrefslogtreecommitdiff
path: root/js/tools/bindingTool.js
diff options
context:
space:
mode:
authorArmen Kesablyan2012-06-26 17:17:43 -0700
committerArmen Kesablyan2012-06-26 17:17:43 -0700
commitec6759f9821a5647905617e3992fdda1cea390ef (patch)
treebee18565a93d577ea62d8e314c2f5921e8b44f80 /js/tools/bindingTool.js
parent67a47e519fcf5d6ebd701aee09efd5e32c0aa208 (diff)
downloadninja-ec6759f9821a5647905617e3992fdda1cea390ef.tar.gz
Binding View - Hide in Live Preview
Signed-off-by: Armen Kesablyan <armen@motorola.com>
Diffstat (limited to 'js/tools/bindingTool.js')
-rw-r--r--js/tools/bindingTool.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/js/tools/bindingTool.js b/js/tools/bindingTool.js
index 1e1c9e5b..3f8e960f 100644
--- a/js/tools/bindingTool.js
+++ b/js/tools/bindingTool.js
@@ -33,6 +33,7 @@ exports.BindingTool = Montage.create(ModifierToolBase, {
33 { 33 {
34 NJevent("enableStageMove"); 34 NJevent("enableStageMove");
35 this.application.ninja.workspaceMode = "binding"; 35 this.application.ninja.workspaceMode = "binding";
36 this.application.ninja.stage.bindingView.hide = false;
36 if (this.application.ninja.selectedElements.length !== 0 ) { 37 if (this.application.ninja.selectedElements.length !== 0 ) {
37 if(typeof(this.application.ninja.selectedElements[0].controller) !== "undefined") { 38 if(typeof(this.application.ninja.selectedElements[0].controller) !== "undefined") {
38 this.selectedComponent = this.application.ninja.selectedElements[0].controller; 39 this.selectedComponent = this.application.ninja.selectedElements[0].controller;
@@ -47,6 +48,7 @@ exports.BindingTool = Montage.create(ModifierToolBase, {
47 NJevent("disableStageMove"); 48 NJevent("disableStageMove");
48 this.application.ninja.workspaceMode = "default"; 49 this.application.ninja.workspaceMode = "default";
49 this.selectedComponent = null; 50 this.selectedComponent = null;
51 this.application.ninja.stage.bindingView.hide = true;
50 } 52 }
51 53
52 } 54 }