flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject [18/22] git commit: [flex-asjs] [refs/heads/develop] - handle getters
Date Fri, 09 Jan 2015 16:10:31 GMT
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 <aharui@apache.org>
Authored: Fri Jan 9 07:47:25 2015 -0800
Committer: Alex Harui <aharui@apache.org>
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));


Mime
View raw message