flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mkess...@apache.org
Subject git commit: [flex-sdk] [refs/heads/develop] - FLEX-33919: Corrected the range check to included everything below zero.
Date Wed, 20 Nov 2013 02:14:24 GMT
Updated Branches:
  refs/heads/develop dc4ebc0b0 -> 323882d8a


FLEX-33919: Corrected the range check to included everything below zero.


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

Branch: refs/heads/develop
Commit: 323882d8a2619046e3833ae5e7033e7d9a70b4a1
Parents: dc4ebc0
Author: Mark Kessler <KesslerConsulting@gmail.com>
Authored: Tue Nov 19 21:09:25 2013 -0500
Committer: Mark Kessler <KesslerConsulting@gmail.com>
Committed: Tue Nov 19 21:13:50 2013 -0500

----------------------------------------------------------------------
 .../projects/spark/src/spark/components/supportClasses/ListBase.as | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/323882d8/frameworks/projects/spark/src/spark/components/supportClasses/ListBase.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/spark/src/spark/components/supportClasses/ListBase.as b/frameworks/projects/spark/src/spark/components/supportClasses/ListBase.as
index e639b5c..13a3785 100644
--- a/frameworks/projects/spark/src/spark/components/supportClasses/ListBase.as
+++ b/frameworks/projects/spark/src/spark/components/supportClasses/ListBase.as
@@ -923,7 +923,7 @@ public class ListBase extends SkinnableDataContainer implements IDataProviderEnh
         if (allowCustomSelectedItem && selectedIndex == CUSTOM_SELECTED_ITEM)
             return _selectedItem;
         
-        if (selectedIndex == NO_SELECTION || dataProvider == null)
+        if (selectedIndex < 0 || dataProvider == null)
            return undefined;
            
         return dataProvider.length > selectedIndex ? dataProvider.getItemAt(selectedIndex)
: undefined;


Mime
View raw message