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) --- test/CompilerSpec.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test/CompilerSpec.js') diff --git a/test/CompilerSpec.js b/test/CompilerSpec.js index 780fd7cb..fa63ab77 100644 --- a/test/CompilerSpec.js +++ b/test/CompilerSpec.js @@ -14,7 +14,8 @@ describe('compiler', function(){ watch: function(expression, element){ return function() { this.$watch(expression, function(val){ - log += ":" + val; + if (val) + log += ":" + val; }); }; } -- cgit v1.2.3