aboutsummaryrefslogtreecommitdiff
path: root/js/controllers
diff options
context:
space:
mode:
authorArmen Kesablyan2012-06-02 20:57:00 -0700
committerArmen Kesablyan2012-06-02 20:57:00 -0700
commit2136cbf21beeaf7550a0a8d94c1fc246c3dcefb2 (patch)
treec475bf0f30d334584ffb617175c2e027438f058e /js/controllers
parent7655e32da5bcdf7b205afc1908c9b7bcc661b0d4 (diff)
parent6ac505c3fc2b4be7628b9df339ab9f64de700c8b (diff)
downloadninja-2136cbf21beeaf7550a0a8d94c1fc246c3dcefb2.tar.gz
Merge branch 'binding' of https://github.com/dhg637/ninja-internal into binding
Conflicts: js/tools/bindingTool.js Signed-off-by: Armen Kesablyan <armen@motorola.com>
Diffstat (limited to 'js/controllers')
-rw-r--r--js/controllers/objects-controller.js28
1 files changed, 15 insertions, 13 deletions
diff --git a/js/controllers/objects-controller.js b/js/controllers/objects-controller.js
index a02c3045..2c9f2d66 100644
--- a/js/controllers/objects-controller.js
+++ b/js/controllers/objects-controller.js
@@ -89,19 +89,21 @@ var objectsController = exports.ObjectsController = Montage.create(Component, {
89 bindingsArray = [], 89 bindingsArray = [],
90 property, descriptor, bindingArgsObject; 90 property, descriptor, bindingArgsObject;
91 91
92 for(property in descriptors) { 92 if(descriptors) {
93 if(descriptors.hasOwnProperty(property)) { 93 for(property in descriptors) {
94 descriptor = descriptors[property]; 94 if(descriptors.hasOwnProperty(property)) {
95 95 descriptor = descriptors[property];
96 bindingArgsObject = { 96
97 sourceObject : object, 97 bindingArgsObject = {
98 sourceObjectPropertyPath : property, 98 sourceObject : object,
99 boundObject : descriptor.boundObject, 99 sourceObjectPropertyPath : property,
100 boundObjectPropertyPath : descriptor.boundObjectPropertyPath, 100 boundObject : descriptor.boundObject,
101 onweway : descriptor.oneway 101 boundObjectPropertyPath : descriptor.boundObjectPropertyPath,
102 }; 102 oneway : descriptor.oneway
103 103 };
104 bindingsArray.push(bindingArgsObject); 104
105 bindingsArray.push(bindingArgsObject);
106 }
105 } 107 }
106 } 108 }
107 109