diff options
| author | Gonzalo Ruiz de Villa | 2013-05-01 01:19:44 +0200 |
|---|---|---|
| committer | Pete Bacon Darwin | 2013-05-02 15:12:37 +0100 |
| commit | 1d8e11ddfbd6b08ff02df4331f6df125f49da3dc (patch) | |
| tree | 611603eca5b1ff4db46230a0159a98d5e8487048 /src/ng/directive/ngRepeat.js | |
| parent | 6452707d4098235bdbde34e790aee05a1b091218 (diff) | |
| download | angular.js-1d8e11ddfbd6b08ff02df4331f6df125f49da3dc.tar.bz2 | |
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
Diffstat (limited to 'src/ng/directive/ngRepeat.js')
| -rw-r--r-- | src/ng/directive/ngRepeat.js | 2 |
1 files changed, 1 insertions, 1 deletions
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 |
