From 1d8e11ddfbd6b08ff02df4331f6df125f49da3dc Mon Sep 17 00:00:00 2001 From: Gonzalo Ruiz de Villa Date: Wed, 1 May 2013 01:19:44 +0200 Subject: fix(ngRepeat): correctly iterate over array-like objects Check if the object is array-like to iterate over it like it's done with arrays. Closes #2546 --- src/ng/directive/ngRepeat.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/ng/directive/ngRepeat.js b/src/ng/directive/ngRepeat.js index a7d55895..0fd53c2f 100644 --- a/src/ng/directive/ngRepeat.js +++ b/src/ng/directive/ngRepeat.js @@ -212,7 +212,7 @@ var ngRepeatDirective = ['$parse', '$animator', function($parse, $animator) { nextBlockOrder = []; - if (isArray(collection)) { + if (isArrayLike(collection)) { collectionKeys = collection; } else { // if object, extract keys, sort them and use to determine order of iteration over obj props -- cgit v1.2.3