You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by ah...@apache.org on 2014/10/18 07:43:21 UTC
[04/30] git commit: [flex-asjs] [refs/heads/develop] - handle 'this'
in property chain
handle 'this' in property chain
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/24c84033
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/24c84033
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/24c84033
Branch: refs/heads/develop
Commit: 24c840332e15725e048e14cbd2d0daf97e74a8f4
Parents: 6b3e47f
Author: Alex Harui <ah...@apache.org>
Authored: Mon Oct 13 12:42:09 2014 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Fri Oct 17 22:38:42 2014 -0700
----------------------------------------------------------------------
.../projects/FlexJSUI/src/org/apache/flex/core/DataBindingBase.as | 3 +++
1 file changed, 3 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/24c84033/frameworks/as/projects/FlexJSUI/src/org/apache/flex/core/DataBindingBase.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSUI/src/org/apache/flex/core/DataBindingBase.as b/frameworks/as/projects/FlexJSUI/src/org/apache/flex/core/DataBindingBase.as
index 5614d41..b2ab15a 100644
--- a/frameworks/as/projects/FlexJSUI/src/org/apache/flex/core/DataBindingBase.as
+++ b/frameworks/as/projects/FlexJSUI/src/org/apache/flex/core/DataBindingBase.as
@@ -51,6 +51,9 @@ package org.apache.flex.core
*/
protected function getProperty(obj:Object, propName:String):*
{
+ if (propName === 'this')
+ return obj;
+
return obj[propName];
}