flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmcl...@apache.org
Subject [4/5] git commit: [flex-sdk] [refs/heads/develop] - make catch block empty to improve performance
Date Fri, 03 Jan 2014 02:51:03 GMT
make catch block empty to improve performance


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

Branch: refs/heads/develop
Commit: 19090860489745e7324025c0e2de051d96897aeb
Parents: 5cc6c25
Author: Justin Mclean <jmclean@apache.org>
Authored: Fri Jan 3 13:45:08 2014 +1100
Committer: Justin Mclean <jmclean@apache.org>
Committed: Fri Jan 3 13:45:08 2014 +1100

----------------------------------------------------------------------
 frameworks/projects/spark/src/spark/collections/Sort.as | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/19090860/frameworks/projects/spark/src/spark/collections/Sort.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/spark/src/spark/collections/Sort.as b/frameworks/projects/spark/src/spark/collections/Sort.as
index cca7943..a6131b1 100644
--- a/frameworks/projects/spark/src/spark/collections/Sort.as
+++ b/frameworks/projects/spark/src/spark/collections/Sort.as
@@ -551,14 +551,14 @@ public class Sort extends AdvancedStyleClient implements ISort
                     fieldName = fieldList[i];
                     if (fieldName)
                     {
-                        var hasFieldName:Boolean;
-                        try
+                        var hasFieldName:Boolean = false;
+                        
+						try
                         {
                             hasFieldName = values[fieldName] !== undefined;
                         }
                         catch(e:Error)
                         {
-                            hasFieldName = false;
                         }
                         if (hasFieldName)
                         {


Mime
View raw message