handle getters
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/a52b754a Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/a52b754a Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/a52b754a Branch: refs/heads/develop Commit: a52b754ada38068b815094ec5f965374219ea771 Parents: c9f9b8a Author: Alex Harui <[email protected]> Authored: Fri Jan 9 07:47:25 2015 -0800 Committer: Alex Harui <[email protected]> Committed: Fri Jan 9 08:09:50 2015 -0800 ---------------------------------------------------------------------- frameworks/js/FlexJS/src/org/apache/flex/binding/BindingBase.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/a52b754a/frameworks/js/FlexJS/src/org/apache/flex/binding/BindingBase.js ---------------------------------------------------------------------- diff --git a/frameworks/js/FlexJS/src/org/apache/flex/binding/BindingBase.js b/frameworks/js/FlexJS/src/org/apache/flex/binding/BindingBase.js index 51ba089..68962ac 100644 --- a/frameworks/js/FlexJS/src/org/apache/flex/binding/BindingBase.js +++ b/frameworks/js/FlexJS/src/org/apache/flex/binding/BindingBase.js @@ -83,7 +83,10 @@ org.apache.flex.binding.BindingBase.prototype.set_strand = function(value) { if (this.destination == null) this.destination = value; if (this.sourceID != null) { - this.source = this.document[this.sourceID]; + if (typeof(this.document['get_' + this.sourceID]) === 'function') + this.source = this.document['get_' + this.sourceID](); + else + this.source = this.document[this.sourceID]; if (this.source == null) { this.document.addEventListener('valueChange', goog.bind(this.sourceChangeHandler, this));
