flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject [12/22] git commit: [flex-asjs] [refs/heads/develop] - abstract 'in' test so it cross compiles better
Date Fri, 09 Jan 2015 16:10:25 GMT
abstract 'in' test so it cross compiles better


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

Branch: refs/heads/develop
Commit: 9791c922578ec3895d07a8fe2f3e180b90564f66
Parents: 65846f4
Author: Alex Harui <aharui@apache.org>
Authored: Fri Jan 9 07:43:05 2015 -0800
Committer: Alex Harui <aharui@apache.org>
Committed: Fri Jan 9 08:09:48 2015 -0800

----------------------------------------------------------------------
 .../apache/flex/core/MXMLBeadViewBaseDataBinding.as    |  2 +-
 .../src/org/apache/flex/core/DataBindingBase.as        | 13 +++++++++++++
 2 files changed, 14 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/9791c922/frameworks/as/projects/FlexJSJX/src/org/apache/flex/core/MXMLBeadViewBaseDataBinding.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSJX/src/org/apache/flex/core/MXMLBeadViewBaseDataBinding.as
b/frameworks/as/projects/FlexJSJX/src/org/apache/flex/core/MXMLBeadViewBaseDataBinding.as
index f41340c..741b7a9 100644
--- a/frameworks/as/projects/FlexJSJX/src/org/apache/flex/core/MXMLBeadViewBaseDataBinding.as
+++ b/frameworks/as/projects/FlexJSJX/src/org/apache/flex/core/MXMLBeadViewBaseDataBinding.as
@@ -97,7 +97,7 @@ package org.apache.flex.core
                     binding = bindings[i];
                 if (binding.source is Array)
                 {
-                    if (binding.source[0] in _strand)
+                    if (hasProperty(_strand, binding.source[0]))
                     {
                         if (binding.source.length == 2 && binding.destination.length
== 2)
                         {

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/9791c922/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 b2ab15a..ff4ae9a 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
@@ -42,6 +42,19 @@ package org.apache.flex.core
 		}
 		
         /**
+         *  True if property is defined on object.
+         *  
+         *  @langversion 3.0
+         *  @playerversion Flash 10.2
+         *  @playerversion AIR 2.6
+         *  @productversion FlexJS 0.0
+         */
+        protected function hasProperty(obj:Object, propName:String):Boolean
+        {
+            return (propName in obj);
+        }
+        
+        /**
          *  Get a property from an object.
          *  
          *  @langversion 3.0


Mime
View raw message