diff options
author | Eric Guzman | 2012-06-20 09:29:12 -0700 |
---|---|---|
committer | Eric Guzman | 2012-06-20 09:29:12 -0700 |
commit | e0dc3ff089904653edcf1668e537e1285fd00458 (patch) | |
tree | cd04411fcb7888d1eedaf4aca74737dbd54d5dbe /js/stage/binding-view.reel/binding-view.js | |
parent | 4bce228aa425fc9b6b9db59518275d248405ed9e (diff) | |
parent | e506b93b285a1666999afe7cf65317cb6552db03 (diff) | |
download | ninja-e0dc3ff089904653edcf1668e537e1285fd00458.tar.gz |
Merge branch 'binding' of github.com:dhg637/ninja-internal into binding
Diffstat (limited to 'js/stage/binding-view.reel/binding-view.js')
-rwxr-xr-x | js/stage/binding-view.reel/binding-view.js | 3 |
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 | { |