flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmcl...@apache.org
Subject [1/3] git commit: [flex-sdk] - FLEX-24691 Added checks for NaN in date comparison
Date Thu, 18 Apr 2013 01:11:25 GMT
Updated Branches:
  refs/heads/develop cc5935510 -> 92448d797


FLEX-24691 Added checks for NaN in date comparison


Project: http://git-wip-us.apache.org/repos/asf/flex-sdk/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-sdk/commit/17a0c879
Tree: http://git-wip-us.apache.org/repos/asf/flex-sdk/tree/17a0c879
Diff: http://git-wip-us.apache.org/repos/asf/flex-sdk/diff/17a0c879

Branch: refs/heads/develop
Commit: 17a0c8790e273055375e8217fe1633f270c64bc6
Parents: cc59355
Author: Justin Mclean <jmclean@apache.org>
Authored: Thu Apr 18 10:21:44 2013 +1000
Committer: Justin Mclean <jmclean@apache.org>
Committed: Thu Apr 18 10:21:44 2013 +1000

----------------------------------------------------------------------
 .../projects/framework/src/mx/utils/ObjectUtil.as  |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/17a0c879/frameworks/projects/framework/src/mx/utils/ObjectUtil.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/framework/src/mx/utils/ObjectUtil.as b/frameworks/projects/framework/src/mx/utils/ObjectUtil.as
index 885c5f3..c9e8fbb 100644
--- a/frameworks/projects/framework/src/mx/utils/ObjectUtil.as
+++ b/frameworks/projects/framework/src/mx/utils/ObjectUtil.as
@@ -351,6 +351,15 @@ public class ObjectUtil
 
         if (na > nb)
             return 1;
+		
+		if (isNaN(na) && isNaN(nb))
+			return 0;
+		
+		if (isNaN(na))
+			return 1;
+		
+		if (isNaN(nb))
+			return -1;
 
         return 0;
     }


Mime
View raw message