aboutsummaryrefslogtreecommitdiff
path: root/js/controllers
diff options
context:
space:
mode:
authorEric Guzman2012-06-10 17:22:01 -0700
committerEric Guzman2012-06-10 17:22:01 -0700
commit9fe73eaccdd7e3d82bb4cd5326f126ee683a2d25 (patch)
tree57bcc3c3c5b58c0c57e79665b3bc02dbb3c9a65c /js/controllers
parent32f8b04c6911c6ac2f3f83dded50e6d5c0fbeede (diff)
downloadninja-9fe73eaccdd7e3d82bb4cd5326f126ee683a2d25.tar.gz
Binding Panel - Direction toggle changes are savable.
Diffstat (limited to 'js/controllers')
-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 }