flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject [15/17] git commit: [flex-asjs] [refs/heads/develop] - handle 'this' in databinding expressions'
Date Tue, 13 Jan 2015 18:11:24 GMT
handle 'this' in databinding expressions'


Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/135db98c
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/135db98c
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/135db98c

Branch: refs/heads/develop
Commit: 135db98c4d16a8728a89b18945b38c3e0a82cdc5
Parents: f9d8ac7
Author: Alex Harui <aharui@apache.org>
Authored: Tue Jan 13 10:09:38 2015 -0800
Committer: Alex Harui <aharui@apache.org>
Committed: Tue Jan 13 10:09:38 2015 -0800

----------------------------------------------------------------------
 frameworks/js/FlexJS/src/org/apache/flex/core/DataBindingBase.js | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/135db98c/frameworks/js/FlexJS/src/org/apache/flex/core/DataBindingBase.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/DataBindingBase.js b/frameworks/js/FlexJS/src/org/apache/flex/core/DataBindingBase.js
index 6955b92..a543182 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/DataBindingBase.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/DataBindingBase.js
@@ -56,6 +56,9 @@ org.apache.flex.core.DataBindingBase.prototype.hasProperty =
  */
 org.apache.flex.core.DataBindingBase.prototype.getProperty =
     function(obj, propName) {
+  if (propName == 'this')
+    return obj;
+
   if (typeof obj['get_' + propName] === 'function') {
     return obj['get_' + propName]();
   }


Mime
View raw message