aboutsummaryrefslogtreecommitdiff
path: root/js/controllers
diff options
context:
space:
mode:
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..59646083 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 || descriptor.oneway === null) ? true : false
103 103 };
104 bindingsArray.push(bindingArgsObject); 104
105 bindingsArray.push(bindingArgsObject);
106 }
105 } 107 }
106 } 108 }
107 109