diff options
author | Pushkar Joshi | 2012-02-08 15:42:40 -0800 |
---|---|---|
committer | Pushkar Joshi | 2012-02-08 15:42:40 -0800 |
commit | 18243deb66ab14a014756bfb0be1a52648c7771a (patch) | |
tree | c64660f7f69840cac5186fd730221335bd0a67af /js/panels | |
parent | 802e92eb70b00849dadacf2c6590d27edbe65d99 (diff) | |
parent | 0537f8f29e7b8dd48fd08f20b1533fbe92a54c4b (diff) | |
download | ninja-18243deb66ab14a014756bfb0be1a52648c7771a.tar.gz |
Merge branch 'master' into pentool
Conflicts:
js/helper-classes/RDGE/GLWorld.js
js/helper-classes/RDGE/MaterialsLibrary.js
Diffstat (limited to 'js/panels')
-rw-r--r-- | js/panels/properties/sections/custom.reel/custom.js | 14 |
1 files changed, 14 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..992db8e6 100644 --- a/js/panels/properties/sections/custom.reel/custom.js +++ b/js/panels/properties/sections/custom.reel/custom.js | |||
@@ -186,6 +186,8 @@ exports.CustomSection = Montage.create(Component, { | |||
186 | if (aField.value) obj.value = aField.value; | 186 | if (aField.value) obj.value = aField.value; |
187 | if (aField.labelField) obj.labelField = aField.labelField; | 187 | if (aField.labelField) obj.labelField = aField.labelField; |
188 | if (aField.labelFunction) obj.labelFunction = aField.labelFunction; | 188 | if (aField.labelFunction) obj.labelFunction = aField.labelFunction; |
189 | if (aField.dataField) obj.dataField = aField.dataField; | ||
190 | if (aField.dataFunction) obj.dataFunction = aField.dataFunction; | ||
189 | if (aField.items) { | 191 | if (aField.items) { |
190 | if(aField.items.boundObject) { | 192 | if(aField.items.boundObject) { |
191 | obj.items = eval(aField.items.boundObject)[aField.items.boundProperty]; | 193 | obj.items = eval(aField.items.boundObject)[aField.items.boundProperty]; |
@@ -193,6 +195,18 @@ exports.CustomSection = Montage.create(Component, { | |||
193 | obj.items = aField.items; | 195 | obj.items = aField.items; |
194 | } | 196 | } |
195 | } | 197 | } |
198 | if (aField.enabled) { | ||
199 | if(aField.enabled.boundObject) { | ||
200 | // TODO - For now, always bind to this.controls[someProperty] | ||
201 | Object.defineBinding(obj, "enabled", { | ||
202 | boundObject: this.controls, | ||
203 | boundObjectPropertyPath: aField.enabled.boundProperty, | ||
204 | oneway: false | ||
205 | }); | ||
206 | } else { | ||
207 | obj.enabled = aField.enabled; | ||
208 | } | ||
209 | } | ||
196 | 210 | ||
197 | obj.addEventListener("change", this, false); | 211 | obj.addEventListener("change", this, false); |
198 | // | 212 | // |