From f0014635213061f1d945442140257750e666e752 Mon Sep 17 00:00:00 2001 From: Armen Kesablyan Date: Tue, 19 Jun 2012 23:07:34 -0700 Subject: Binding View - Added Line cap in drawing line & Fixed bug to not pop up on current component Signed-off-by: Armen Kesablyan --- js/stage/binding-view.reel/binding-view.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'js') diff --git a/js/stage/binding-view.reel/binding-view.js b/js/stage/binding-view.reel/binding-view.js index aa690ee6..a4aebd1b 100755 --- a/js/stage/binding-view.reel/binding-view.js +++ b/js/stage/binding-view.reel/binding-view.js @@ -216,6 +216,7 @@ exports.BindingView = Montage.create(Component, { if(width === null) width = 1; if (color === null) color = "#CCC"; this._context.lineWidth = width; // Set Line Thickness + this._context.lineCap = "round"; this._context.strokeStyle = color; // Set Color this._context.beginPath(); // Start Drawing Line this._context.moveTo(fromX, fromY); @@ -294,7 +295,7 @@ exports.BindingView = Montage.create(Component, { if(this._isDrawingConnection && !overHud) { //NOTE : Continue This content. mouse over select var obj = this.application.ninja.stage.getElement(event, true); - if (obj) + if (obj && obj.controller !== this.selectedComponent) { if (!obj.controller || obj === null) { -- cgit v1.2.3