You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by ha...@apache.org on 2017/06/22 09:37:41 UTC

git commit: [flex-asjs] [refs/heads/tlf] - Forgot to reapply this

Repository: flex-asjs
Updated Branches:
  refs/heads/tlf 99bf3f175 -> e2e079e38


Forgot to reapply this


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

Branch: refs/heads/tlf
Commit: e2e079e389c54ac1cf441603d393a66d77252a5b
Parents: 99bf3f1
Author: Harbs <ha...@in-tools.com>
Authored: Thu Jun 22 12:37:36 2017 +0300
Committer: Harbs <ha...@in-tools.com>
Committed: Thu Jun 22 12:37:36 2017 +0300

----------------------------------------------------------------------
 .../src/main/flex/org/apache/flex/collections/FlattenedList.as    | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/e2e079e3/frameworks/projects/Collections/src/main/flex/org/apache/flex/collections/FlattenedList.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Collections/src/main/flex/org/apache/flex/collections/FlattenedList.as b/frameworks/projects/Collections/src/main/flex/org/apache/flex/collections/FlattenedList.as
index f26fd8b..4f4de3a 100644
--- a/frameworks/projects/Collections/src/main/flex/org/apache/flex/collections/FlattenedList.as
+++ b/frameworks/projects/Collections/src/main/flex/org/apache/flex/collections/FlattenedList.as
@@ -190,7 +190,8 @@ package org.apache.flex.collections
 			
 			if (hdata.hasChildren(node)) {
 				var children:Array = hdata.getChildren(node) as Array;
-				for (var i:int=0; i < children.length; i++) {
+				var len:int = children.length;
+				for (var i:int=0; i < len; i++) {
 					var newDepth:int = godeep(seeking, children[i], depth+1)
 					if (newDepth > 0) return newDepth;
 				}