diff options
author | Eric Guzman | 2012-06-13 11:29:53 -0700 |
---|---|---|
committer | Eric Guzman | 2012-06-13 11:29:53 -0700 |
commit | 1c32ba9a460bbb737206ce10d1ea75f035f543b7 (patch) | |
tree | c695e1a8a2032540e64a1d0662223e5518ea32af | |
parent | b5bf8292effae7b56f5dc8733ced4e799c22de44 (diff) | |
download | ninja-1c32ba9a460bbb737206ce10d1ea75f035f543b7.tar.gz |
Objects Controller - Update current object bindings when adding/removing bindings
-rw-r--r-- | js/controllers/objects-controller.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/js/controllers/objects-controller.js b/js/controllers/objects-controller.js index 7da70520..386ef683 100644 --- a/js/controllers/objects-controller.js +++ b/js/controllers/objects-controller.js | |||
@@ -66,6 +66,7 @@ var objectsController = exports.ObjectsController = Montage.create(Component, { | |||
66 | if(!bindingArgs.sourceObject || !bindingArgs.sourceObjectPropertyPath || !bindingArgs) { return; } | 66 | if(!bindingArgs.sourceObject || !bindingArgs.sourceObjectPropertyPath || !bindingArgs) { return; } |
67 | 67 | ||
68 | Object.defineBinding(bindingArgs.sourceObject, bindingArgs.sourceObjectPropertyPath, bindingArgs); | 68 | Object.defineBinding(bindingArgs.sourceObject, bindingArgs.sourceObjectPropertyPath, bindingArgs); |
69 | this.currentObjectBindings = this.getObjectBindings(value); | ||
69 | } | 70 | } |
70 | }, | 71 | }, |
71 | 72 | ||
@@ -76,6 +77,7 @@ var objectsController = exports.ObjectsController = Montage.create(Component, { | |||
76 | 77 | ||
77 | 78 | ||
78 | Object.deleteBinding(bindingArgs.sourceObject, bindingArgs.sourceObjectPropertyPath); | 79 | Object.deleteBinding(bindingArgs.sourceObject, bindingArgs.sourceObjectPropertyPath); |
80 | this.currentObjectBindings = this.getObjectBindings(value); | ||
79 | } | 81 | } |
80 | }, | 82 | }, |
81 | 83 | ||
@@ -92,6 +94,7 @@ var objectsController = exports.ObjectsController = Montage.create(Component, { | |||
92 | } | 94 | } |
93 | 95 | ||
94 | this.addBinding(bindingArgs); | 96 | this.addBinding(bindingArgs); |
97 | |||
95 | } | 98 | } |
96 | }, | 99 | }, |
97 | 100 | ||