aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Guzman2012-06-11 07:15:40 -0700
committerEric Guzman2012-06-11 07:15:40 -0700
commit85c8a01d19d4c4931d5395a9e8ccc14fcfc48041 (patch)
tree31e115a41cc726a7eb482037c8a329cbf6f652fb
parent9fe73eaccdd7e3d82bb4cd5326f126ee683a2d25 (diff)
downloadninja-85c8a01d19d4c4931d5395a9e8ccc14fcfc48041.tar.gz
Controller - Allow currentBindings to update by resetting currentObject
-rw-r--r--js/controllers/objects-controller.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/js/controllers/objects-controller.js b/js/controllers/objects-controller.js
index 651cf356..2ce10e82 100644
--- a/js/controllers/objects-controller.js
+++ b/js/controllers/objects-controller.js
@@ -69,6 +69,8 @@ var objectsController = exports.ObjectsController = Montage.create(Component, {
69 value: function(bindingArgs) { 69 value: function(bindingArgs) {
70 if(!bindingArgs) { return; } 70 if(!bindingArgs) { return; }
71 71
72
73
72 Object.deleteBinding(bindingArgs.sourceObject, bindingArgs.sourceObjectPropertyPath); 74 Object.deleteBinding(bindingArgs.sourceObject, bindingArgs.sourceObjectPropertyPath);
73 } 75 }
74 }, 76 },
@@ -177,7 +179,7 @@ var objectsController = exports.ObjectsController = Montage.create(Component, {
177 return this._currentObject; 179 return this._currentObject;
178 }, 180 },
179 set: function(value) { 181 set: function(value) {
180 if(value === this._currentObject) { return; } 182 //if(value === this._currentObject) { return; }
181 183
182 if(value) { 184 if(value) {
183 this.currentObjectBindings = this.getObjectBindings(value); 185 this.currentObjectBindings = this.getObjectBindings(value);