diff options
| author | Gonzalo Ruiz de Villa | 2013-05-02 13:05:22 +0200 |
|---|---|---|
| committer | Pete Bacon Darwin | 2013-05-02 15:12:37 +0100 |
| commit | 6452707d4098235bdbde34e790aee05a1b091218 (patch) | |
| tree | 01897f4f65d26e12a8dcf5367eb020745a2ef82b /src | |
| parent | dc9a580617a838b63cbf5feae362b6f9cf5ed986 (diff) | |
| download | angular.js-6452707d4098235bdbde34e790aee05a1b091218.tar.bz2 | |
fix($rootScope) ensure $watchCollection correctly handles arrayLike objects
Diffstat (limited to 'src')
| -rw-r--r-- | src/ng/rootScope.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ng/rootScope.js b/src/ng/rootScope.js index 10b31dd1..0892843d 100644 --- a/src/ng/rootScope.js +++ b/src/ng/rootScope.js @@ -376,7 +376,7 @@ function $RootScopeProvider(){ oldValue = newValue; changeDetected++; } - } else if (isArray(newValue)) { + } else if (isArrayLike(newValue)) { if (oldValue !== internalArray) { // we are transitioning from something which was not an array into array. oldValue = internalArray; |
