From ec6759f9821a5647905617e3992fdda1cea390ef Mon Sep 17 00:00:00 2001 From: Armen Kesablyan Date: Tue, 26 Jun 2012 17:17:43 -0700 Subject: Binding View - Hide in Live Preview Signed-off-by: Armen Kesablyan --- js/ninja.reel/ninja.js | 2 ++ js/stage/binding-view.reel/binding-view.js | 8 +------- js/tools/bindingTool.js | 2 ++ 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/js/ninja.reel/ninja.js b/js/ninja.reel/ninja.js index f1825b9a..0b7748e5 100755 --- a/js/ninja.reel/ninja.js +++ b/js/ninja.reel/ninja.js @@ -519,10 +519,12 @@ exports.Ninja = Montage.create(Component, { // background = "#000000"; // overflow = "hidden"; transitionStopRule = "nj-css-garbage-selector"; + this.stage.bindingView.hide = true; } else { // background = "#808080"; // overflow = "visible"; transitionStopRule = "*" + this.stage.bindingView.hide = false; } // TODO: Remove marker for old template: NINJA-STAGE-REWORK diff --git a/js/stage/binding-view.reel/binding-view.js b/js/stage/binding-view.reel/binding-view.js index 1fc4d583..94c84d02 100755 --- a/js/stage/binding-view.reel/binding-view.js +++ b/js/stage/binding-view.reel/binding-view.js @@ -198,7 +198,7 @@ exports.BindingView = Montage.create(Component, { } }, - _hide : { value: null }, + _hide : { value: true }, hide : { get : function() { return this._hide; }, set : function(value) { @@ -247,12 +247,6 @@ exports.BindingView = Montage.create(Component, { } }, - didDraw: { - value: function() { - - } - }, - drawLine: { value: function(fromX,fromY,toX,toY, color, width) { if(width === null) width = 1; 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, { { NJevent("enableStageMove"); this.application.ninja.workspaceMode = "binding"; + this.application.ninja.stage.bindingView.hide = false; if (this.application.ninja.selectedElements.length !== 0 ) { if(typeof(this.application.ninja.selectedElements[0].controller) !== "undefined") { this.selectedComponent = this.application.ninja.selectedElements[0].controller; @@ -47,6 +48,7 @@ exports.BindingTool = Montage.create(ModifierToolBase, { NJevent("disableStageMove"); this.application.ninja.workspaceMode = "default"; this.selectedComponent = null; + this.application.ninja.stage.bindingView.hide = true; } } -- cgit v1.2.3