aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArmen Kesablyan2012-06-19 23:07:34 -0700
committerArmen Kesablyan2012-06-19 23:07:34 -0700
commitf0014635213061f1d945442140257750e666e752 (patch)
tree933e1a9ea4613e18c392495dfadbc60ddc8433c4
parent20ea3997661b068fc6628ffa573e1b2d47e3a800 (diff)
downloadninja-f0014635213061f1d945442140257750e666e752.tar.gz
Binding View - Added Line cap in drawing line & Fixed bug to not pop up on current component
Signed-off-by: Armen Kesablyan <armen@motorola.com>
-rwxr-xr-xjs/stage/binding-view.reel/binding-view.js3
1 files changed, 2 insertions, 1 deletions
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, {
216 if(width === null) width = 1; 216 if(width === null) width = 1;
217 if (color === null) color = "#CCC"; 217 if (color === null) color = "#CCC";
218 this._context.lineWidth = width; // Set Line Thickness 218 this._context.lineWidth = width; // Set Line Thickness
219 this._context.lineCap = "round";
219 this._context.strokeStyle = color; // Set Color 220 this._context.strokeStyle = color; // Set Color
220 this._context.beginPath(); // Start Drawing Line 221 this._context.beginPath(); // Start Drawing Line
221 this._context.moveTo(fromX, fromY); 222 this._context.moveTo(fromX, fromY);
@@ -294,7 +295,7 @@ exports.BindingView = Montage.create(Component, {
294 if(this._isDrawingConnection && !overHud) { 295 if(this._isDrawingConnection && !overHud) {
295 //NOTE : Continue This content. mouse over select 296 //NOTE : Continue This content. mouse over select
296 var obj = this.application.ninja.stage.getElement(event, true); 297 var obj = this.application.ninja.stage.getElement(event, true);
297 if (obj) 298 if (obj && obj.controller !== this.selectedComponent)
298 { 299 {
299 if (!obj.controller || obj === null) 300 if (!obj.controller || obj === null)
300 { 301 {