From 6452707d4098235bdbde34e790aee05a1b091218 Mon Sep 17 00:00:00 2001 From: Gonzalo Ruiz de Villa Date: Thu, 2 May 2013 13:05:22 +0200 Subject: fix($rootScope) ensure $watchCollection correctly handles arrayLike objects --- src/ng/rootScope.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ng') 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; -- cgit v1.2.3