From 85c8a01d19d4c4931d5395a9e8ccc14fcfc48041 Mon Sep 17 00:00:00 2001 From: Eric Guzman Date: Mon, 11 Jun 2012 07:15:40 -0700 Subject: Controller - Allow currentBindings to update by resetting currentObject --- js/controllers/objects-controller.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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, { value: function(bindingArgs) { if(!bindingArgs) { return; } + + Object.deleteBinding(bindingArgs.sourceObject, bindingArgs.sourceObjectPropertyPath); } }, @@ -177,7 +179,7 @@ var objectsController = exports.ObjectsController = Montage.create(Component, { return this._currentObject; }, set: function(value) { - if(value === this._currentObject) { return; } + //if(value === this._currentObject) { return; } if(value) { this.currentObjectBindings = this.getObjectBindings(value); -- cgit v1.2.3