aboutsummaryrefslogtreecommitdiff
path: root/js/controllers
diff options
context:
space:
mode:
Diffstat (limited to 'js/controllers')
-rw-r--r--js/controllers/objects-controller.js24
1 files changed, 14 insertions, 10 deletions
diff --git a/js/controllers/objects-controller.js b/js/controllers/objects-controller.js
index 32f24d5c..6da53b0f 100644
--- a/js/controllers/objects-controller.js
+++ b/js/controllers/objects-controller.js
@@ -94,15 +94,15 @@ var objectsController = exports.ObjectsController = Montage.create(Component, {
94 if(descriptors.hasOwnProperty(property)) { 94 if(descriptors.hasOwnProperty(property)) {
95 descriptor = descriptors[property]; 95 descriptor = descriptors[property];
96 96
97 bindingArgsObject = { 97 bindingArgsObject = {
98 sourceObject : object, 98 sourceObject : object,
99 sourceObjectPropertyPath : property, 99 sourceObjectPropertyPath : property,
100 boundObject : descriptor.boundObject, 100 boundObject : descriptor.boundObject,
101 boundObjectPropertyPath : descriptor.boundObjectPropertyPath, 101 boundObjectPropertyPath : descriptor.boundObjectPropertyPath,
102 oneway : descriptor.oneway 102 oneway : descriptor.oneway
103 }; 103 };
104 104
105 bindingsArray.push(bindingArgsObject); 105 bindingsArray.push(bindingArgsObject);
106 } 106 }
107 } 107 }
108 } 108 }
@@ -125,6 +125,7 @@ var objectsController = exports.ObjectsController = Montage.create(Component, {
125 } 125 }
126 126
127 return prototypes.map(function(proto) { 127 return prototypes.map(function(proto) {
128
128 var metadata = proto._montage_metadata, 129 var metadata = proto._montage_metadata,
129 objectName = (metadata) ? metadata.objectName : "Object"; 130 objectName = (metadata) ? metadata.objectName : "Object";
130 131
@@ -142,8 +143,11 @@ var objectsController = exports.ObjectsController = Montage.create(Component, {
142 var properties = []; 143 var properties = [];
143 144
144 for(var key in object) { 145 for(var key in object) {
146 debugger;
145 if(object.hasOwnProperty(key)) { 147 if(object.hasOwnProperty(key)) {
146 properties.push(key); 148 if(key.serializable) {
149 properties.push(key);
150 }
147 } 151 }
148 } 152 }
149 153