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 <[email protected]>
Authored: Fri Jan 3 13:45:08 2014 +1100
Committer: Justin Mclean <[email protected]>
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)
                         {

Reply via email to