aboutsummaryrefslogtreecommitdiff
path: root/js/controllers/objects-controller.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/controllers/objects-controller.js')
-rw-r--r--js/controllers/objects-controller.js12
1 files changed, 9 insertions, 3 deletions
diff --git a/js/controllers/objects-controller.js b/js/controllers/objects-controller.js
index ee203336..651cf356 100644
--- a/js/controllers/objects-controller.js
+++ b/js/controllers/objects-controller.js
@@ -73,11 +73,17 @@ var objectsController = exports.ObjectsController = Montage.create(Component, {
73 } 73 }
74 }, 74 },
75 75
76 editBindingPropertyPath : { 76 editBinding : {
77 value: function(bindingArgs, newPropertyPath) { 77 value: function(bindingArgs, newProperties) {
78 var property;
79
78 this.removeBinding(bindingArgs); 80 this.removeBinding(bindingArgs);
79 81
80 bindingArgs.boundObjectPropertyPath = 'newPropertyPath'; 82 if(newProperties) {
83 for(property in newProperties) {
84 bindingArgs[property] = newProperties[property];
85 }
86 }
81 87
82 this.addBinding(bindingArgs); 88 this.addBinding(bindingArgs);
83 } 89 }