From 0499c4727036446f5c8a5722bbd9c4018dae146f Mon Sep 17 00:00:00 2001 From: Misko Hevery Date: Wed, 10 Nov 2010 16:08:54 -0800 Subject: added ng:switch-when-default; changed $watch to always fire on init. (may be backward incompatible) --- src/Scope.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Scope.js') diff --git a/src/Scope.js b/src/Scope.js index 40192e16..75a33813 100644 --- a/src/Scope.js +++ b/src/Scope.js @@ -167,7 +167,7 @@ function createScope(parent, providers, instanceCache) { $watch: function(watchExp, listener, exceptionHandler) { var watch = expressionCompile(watchExp), - last; + last = {}; listener = expressionCompile(listener); function watcher(){ var value = watch.call(instance), -- cgit v1.2.3