diff options
author | Jose Antonio Marquez | 2012-03-23 13:23:12 -0700 |
---|---|---|
committer | Jose Antonio Marquez | 2012-03-23 13:23:12 -0700 |
commit | 67aaba2e752ea1964356f487269cafc686abb9a7 (patch) | |
tree | c3794257facf5992aff796b1ef11ae661b2aa3cb /js/panels/properties.reel | |
parent | 7e61ce5aba0c8465595804da21e365baf4d8c15d (diff) | |
parent | 3ac73ef7f5de7fb3869c4b84537a6dc6ef86b859 (diff) | |
download | ninja-67aaba2e752ea1964356f487269cafc686abb9a7.tar.gz |
Merge branch 'refs/heads/Ninja-Montage-Integration' into FileIO-Montage-Components
Diffstat (limited to 'js/panels/properties.reel')
-rwxr-xr-x | js/panels/properties.reel/sections/custom.reel/custom.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/js/panels/properties.reel/sections/custom.reel/custom.js b/js/panels/properties.reel/sections/custom.reel/custom.js index 703ef950..ac316907 100755 --- a/js/panels/properties.reel/sections/custom.reel/custom.js +++ b/js/panels/properties.reel/sections/custom.reel/custom.js | |||
@@ -328,6 +328,19 @@ exports.CustomSection = Montage.create(Component, { | |||
328 | if (aField.value) obj.label = aField.value; | 328 | if (aField.value) obj.label = aField.value; |
329 | if (aField.prop) obj.prop = aField.prop; | 329 | if (aField.prop) obj.prop = aField.prop; |
330 | 330 | ||
331 | if (aField.enabled) { | ||
332 | if(aField.enabled.boundObject) { | ||
333 | // TODO - For now, always bind to this.controls[someProperty] | ||
334 | Object.defineBinding(obj, "enabled", { | ||
335 | boundObject: this.controls, | ||
336 | boundObjectPropertyPath: aField.enabled.boundProperty, | ||
337 | oneway: false | ||
338 | }); | ||
339 | } else { | ||
340 | obj.enabled = aField.enabled; | ||
341 | } | ||
342 | } | ||
343 | |||
331 | //Initiate onChange Events | 344 | //Initiate onChange Events |
332 | obj.addEventListener("change", this, false); | 345 | obj.addEventListener("change", this, false); |
333 | 346 | ||