aboutsummaryrefslogtreecommitdiff
path: root/js/panels/properties/sections/custom.reel/custom.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/panels/properties/sections/custom.reel/custom.js')
-rw-r--r--js/panels/properties/sections/custom.reel/custom.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/js/panels/properties/sections/custom.reel/custom.js b/js/panels/properties/sections/custom.reel/custom.js
index 2b5b522a..e92a39fd 100644
--- a/js/panels/properties/sections/custom.reel/custom.js
+++ b/js/panels/properties/sections/custom.reel/custom.js
@@ -193,6 +193,18 @@ exports.CustomSection = Montage.create(Component, {
193 obj.items = aField.items; 193 obj.items = aField.items;
194 } 194 }
195 } 195 }
196 if (aField.enabled) {
197 if(aField.enabled.boundObject) {
198 // TODO - For now, always bind to this.controls[someProperty]
199 Object.defineBinding(obj, "enabled", {
200 boundObject: this.controls,
201 boundObjectPropertyPath: aField.enabled.boundProperty,
202 oneway: false
203 });
204 } else {
205 obj.enabled = aField.enabled;
206 }
207 }
196 208
197 obj.addEventListener("change", this, false); 209 obj.addEventListener("change", this, false);
198// 210//