aboutsummaryrefslogtreecommitdiff
path: root/js/tools/bindingTool.js
diff options
context:
space:
mode:
authorArmen Kesablyan2012-06-28 13:21:11 -0700
committerArmen Kesablyan2012-06-28 13:21:11 -0700
commit9add37d85a9d90541daae8ad5316388c4d9a9da4 (patch)
tree59e2c0f2666eb7914bccd9c1aa60db9289b60a0e /js/tools/bindingTool.js
parent53b8d67197a63e8c8efce102769dd8947a0eae4b (diff)
downloadninja-9add37d85a9d90541daae8ad5316388c4d9a9da4.tar.gz
Binding View - Bug fix After save corrupts doom and breaks binding view
Signed-off-by: Armen Kesablyan <armen@motorola.com>
Diffstat (limited to 'js/tools/bindingTool.js')
-rw-r--r--js/tools/bindingTool.js18
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
13exports.BindingTool = Montage.create(ModifierToolBase, { 13exports.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 }