aboutsummaryrefslogtreecommitdiffstats
path: root/test/CompilerSpec.js
diff options
context:
space:
mode:
authorMisko Hevery2010-11-10 16:08:54 -0800
committerMisko Hevery2010-11-10 21:01:17 -0800
commit0499c4727036446f5c8a5722bbd9c4018dae146f (patch)
tree334261fe7a47d325eb5d0fce653049a4d8940555 /test/CompilerSpec.js
parent43a4ff4cdf4100ded15b90d49a514648a88b87b4 (diff)
downloadangular.js-0499c4727036446f5c8a5722bbd9c4018dae146f.tar.bz2
added ng:switch-when-default; changed $watch to always fire on init. (may be backward incompatible)
Diffstat (limited to 'test/CompilerSpec.js')
-rw-r--r--test/CompilerSpec.js3
1 files changed, 2 insertions, 1 deletions
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;
});
};
}