aboutsummaryrefslogtreecommitdiff
path: root/js/controllers/objects-controller.js
diff options
context:
space:
mode:
authorEric Guzman2012-06-01 19:04:38 -0700
committerEric Guzman2012-06-01 19:04:38 -0700
commit9b238646d7c9d8ed1fde010cde5597f8787a8806 (patch)
treedab40b0a23cd839c50cca56338c6c9d24bf92a2f /js/controllers/objects-controller.js
parent012b2af27a399fd12b58d5be86bd9509c422010d (diff)
downloadninja-9b238646d7c9d8ed1fde010cde5597f8787a8806.tar.gz
Binding Panel - Item css and toggle button action handler
Diffstat (limited to 'js/controllers/objects-controller.js')
-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