diff options
author | Armen Kesablyan | 2012-07-02 13:19:20 -0700 |
---|---|---|
committer | Armen Kesablyan | 2012-07-02 13:19:20 -0700 |
commit | 526b9d76686323f488f1b26175440172b715d808 (patch) | |
tree | 47fc6bd90715b403a08d08a48a86f4d24da1ba29 /js/tools/bindingTool.js | |
parent | b194664df7e01aaeb8d1e7220a6de0e7f879f1db (diff) | |
parent | 12de4e49a309e210c13eb40b2ffa158ef2eb54a7 (diff) | |
download | ninja-526b9d76686323f488f1b26175440172b715d808.tar.gz |
Merge branch 'master' of github.com:Motorola-Mobility/ninja-internal
Diffstat (limited to 'js/tools/bindingTool.js')
-rw-r--r-- | js/tools/bindingTool.js | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/js/tools/bindingTool.js b/js/tools/bindingTool.js index 3f8e960f..3704a451 100644 --- a/js/tools/bindingTool.js +++ b/js/tools/bindingTool.js | |||
@@ -12,17 +12,17 @@ SelectionTool = require("js/tools/SelectionTool").SelectionTool; | |||
12 | 12 | ||
13 | exports.BindingTool = Montage.create(ModifierToolBase, { | 13 | exports.BindingTool = Montage.create(ModifierToolBase, { |
14 | drawingFeedback: { value: { mode: "Draw2D", type: "" } }, | 14 | drawingFeedback: { value: { mode: "Draw2D", type: "" } }, |
15 | _selectedComponent: { | 15 | _selectedElement: { |
16 | value: null | 16 | value: null |
17 | }, | 17 | }, |
18 | 18 | ||
19 | selectedComponent: { | 19 | selectedElement: { |
20 | get:function() { | 20 | get:function() { |
21 | return this._selectedComponent; | 21 | return this._selectedElement; |
22 | }, | 22 | }, |
23 | set: function(val) { | 23 | set: function(val) { |
24 | this._selectedComponent = val; | 24 | this._selectedElement = val; |
25 | this.application.ninja.stage.bindingView.selectedComponent = val; | 25 | this.application.ninja.stage.bindingView.selectedElement = val; |
26 | } | 26 | } |
27 | }, | 27 | }, |
28 | 28 | ||
@@ -36,7 +36,7 @@ exports.BindingTool = Montage.create(ModifierToolBase, { | |||
36 | this.application.ninja.stage.bindingView.hide = false; | 36 | this.application.ninja.stage.bindingView.hide = false; |
37 | if (this.application.ninja.selectedElements.length !== 0 ) { | 37 | if (this.application.ninja.selectedElements.length !== 0 ) { |
38 | if(typeof(this.application.ninja.selectedElements[0].controller) !== "undefined") { | 38 | if(typeof(this.application.ninja.selectedElements[0].controller) !== "undefined") { |
39 | this.selectedComponent = this.application.ninja.selectedElements[0].controller; | 39 | this.selectedElement = this.application.ninja.selectedElements[0]; |
40 | } else { | 40 | } else { |
41 | this.selectedComponent = null; | 41 | this.selectedComponent = null; |
42 | } | 42 | } |
@@ -87,12 +87,12 @@ exports.BindingTool = Montage.create(ModifierToolBase, { | |||
87 | this.doSelection(event); | 87 | this.doSelection(event); |
88 | if (this.application.ninja.selectedElements.length !== 0 ) { | 88 | if (this.application.ninja.selectedElements.length !== 0 ) { |
89 | if(this.application.ninja.selectedElements[0].controller) { | 89 | if(this.application.ninja.selectedElements[0].controller) { |
90 | this.selectedComponent = this.application.ninja.selectedElements[0].controller; | 90 | this.selectedElement = this.application.ninja.selectedElements[0]; |
91 | } else { | 91 | } else { |
92 | this.selectedComponent = null; | 92 | this.selectedElement = null; |
93 | } | 93 | } |
94 | } else { | 94 | } else { |
95 | this.selectedComponent = null; | 95 | this.selectedElement = null; |
96 | } | 96 | } |
97 | this._isDrawing = false; | 97 | this._isDrawing = false; |
98 | } | 98 | } |