You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by jm...@apache.org on 2013/05/04 12:38:42 UTC

[3/5] git commit: [flex-sdk] [refs/heads/develop] - Should check array length outside of loop.

Should check array length outside of loop.


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

Branch: refs/heads/develop
Commit: 6d6a7979bb851694e8f3e1e46eee340efffa2660
Parents: a297401
Author: Justin Mclean <jm...@apache.org>
Authored: Sat May 4 20:29:30 2013 +1000
Committer: Justin Mclean <jm...@apache.org>
Committed: Sat May 4 20:29:30 2013 +1000

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


http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/6d6a7979/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 62fd147..4669383 100644
--- a/frameworks/projects/framework/src/mx/utils/ObjectUtil.as
+++ b/frameworks/projects/framework/src/mx/utils/ObjectUtil.as
@@ -1293,10 +1293,11 @@ public class ObjectUtil
     private static function getCacheKey(o:Object, excludes:Array = null, options:Object = null):String
     {
         var key:String = getQualifiedClassName(o);
-
+		var length:int = excludes.length;
+		
         if (excludes != null)
         {
-            for (var i:uint = 0; i < excludes.length; i++)
+            for (var i:uint = 0; i < length; i++)
             {
                 var excl:String = excludes[i] as String;
                 if (excl != null)