Updated Branches: refs/heads/develop 27885880b -> 4a90e9574
FLEX-33683 fix adding two lists together Project: http://git-wip-us.apache.org/repos/asf/flex-sdk/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-sdk/commit/4a90e957 Tree: http://git-wip-us.apache.org/repos/asf/flex-sdk/tree/4a90e957 Diff: http://git-wip-us.apache.org/repos/asf/flex-sdk/diff/4a90e957 Branch: refs/heads/develop Commit: 4a90e9574c63b2ef25870793900a0a225cd59950 Parents: 2788588 Author: Justin Mclean <jmcl...@apache.org> Authored: Fri Sep 13 09:56:39 2013 +1000 Committer: Justin Mclean <jmcl...@apache.org> Committed: Fri Sep 13 09:56:39 2013 +1000 ---------------------------------------------------------------------- .../projects/framework/src/mx/collections/ListCollectionView.as | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/4a90e957/frameworks/projects/framework/src/mx/collections/ListCollectionView.as ---------------------------------------------------------------------- diff --git a/frameworks/projects/framework/src/mx/collections/ListCollectionView.as b/frameworks/projects/framework/src/mx/collections/ListCollectionView.as index 95acb60..8f4ff02 100644 --- a/frameworks/projects/framework/src/mx/collections/ListCollectionView.as +++ b/frameworks/projects/framework/src/mx/collections/ListCollectionView.as @@ -653,7 +653,9 @@ public class ListCollectionView extends Proxy */ public function addAllAt(addList:IList, index:int):void { - if (index < 0 || index > this.length) + var maxLength:int = this.length + + if (index < 0 || index > maxLength) { var message:String = resourceManager.getString( "collections", "outOfBounds", [ index ]); @@ -661,7 +663,6 @@ public class ListCollectionView extends Proxy } var length:int = addList.length; - var maxLength:int = length // incremental index may be out of bounds because of filtering, // so add this item to the end.