flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmcl...@apache.org
Subject [3/5] git commit: [flex-sdk] [refs/heads/develop] - make catch block empty to improve performance
Date Fri, 03 Jan 2014 02:51:02 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/5cc6c25a
Tree: http://git-wip-us.apache.org/repos/asf/flex-sdk/tree/5cc6c25a
Diff: http://git-wip-us.apache.org/repos/asf/flex-sdk/diff/5cc6c25a

Branch: refs/heads/develop
Commit: 5cc6c25a43669da180631e11fc88e0137d0ba215
Parents: d626e1c
Author: Justin Mclean <jmclean@apache.org>
Authored: Fri Jan 3 13:42:16 2014 +1100
Committer: Justin Mclean <jmclean@apache.org>
Committed: Fri Jan 3 13:42:16 2014 +1100

----------------------------------------------------------------------
 frameworks/projects/mx/src/mx/controls/List.as | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/5cc6c25a/frameworks/projects/mx/src/mx/controls/List.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/mx/src/mx/controls/List.as b/frameworks/projects/mx/src/mx/controls/List.as
index cd5fcf3..46302e7 100644
--- a/frameworks/projects/mx/src/mx/controls/List.as
+++ b/frameworks/projects/mx/src/mx/controls/List.as
@@ -1844,14 +1844,14 @@ public class List extends ListBase implements IIMESupport
 
             if (more)
             {
+				// if we run out of data, assume all remaining rows are the size of the previous row
+				more = false;
                 try
                 {
                     more = iterator.moveNext();
                 }
                 catch(e:ItemPendingError)
                 {
-                    // if we run out of data, assume all remaining rows are the size of the
previous row
-                    more = false;
                 }
             }
         }


Mime
View raw message