aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
Diffstat (limited to 'js')
-rw-r--r--js/controllers/objects-controller.js24
-rwxr-xr-xjs/stage/binding-view.reel/binding-view.js1
2 files changed, 15 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
diff --git a/js/stage/binding-view.reel/binding-view.js b/js/stage/binding-view.reel/binding-view.js
index 8ffc45c1..d76aab81 100755
--- a/js/stage/binding-view.reel/binding-view.js
+++ b/js/stage/binding-view.reel/binding-view.js
@@ -46,6 +46,7 @@ exports.BindingView = Montage.create(Component, {
46 this._selectedComponent = val; 46 this._selectedComponent = val;
47 this.application.ninja.objectsController.currentObject = this.selectedComponent; 47 this.application.ninja.objectsController.currentObject = this.selectedComponent;
48 var arrBindings = this.application.ninja.objectsController.currentObjectBindings; 48 var arrBindings = this.application.ninja.objectsController.currentObjectBindings;
49 debugger;
49 arrBindings.forEach(function(obj) { 50 arrBindings.forEach(function(obj) {
50 51
51 }.bind(this)); 52 }.bind(this));