aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGonzalo Ruiz de Villa2013-05-02 13:05:22 +0200
committerPete Bacon Darwin2013-05-02 15:12:37 +0100
commit6452707d4098235bdbde34e790aee05a1b091218 (patch)
tree01897f4f65d26e12a8dcf5367eb020745a2ef82b /src
parentdc9a580617a838b63cbf5feae362b6f9cf5ed986 (diff)
downloadangular.js-6452707d4098235bdbde34e790aee05a1b091218.tar.bz2
fix($rootScope) ensure $watchCollection correctly handles arrayLike objects
Diffstat (limited to 'src')
-rw-r--r--src/ng/rootScope.js2
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;