From 3ab49538a414a36c97ed3735c2473eefcf7be073 Mon Sep 17 00:00:00 2001 From: Misko Hevery Date: Wed, 13 Oct 2010 10:51:16 -0700 Subject: fixed issue where ng:bind would not reset value if expression returned undefined --- src/directives.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/directives.js b/src/directives.js index 425685f3..c3d732a2 100644 --- a/src/directives.js +++ b/src/directives.js @@ -50,7 +50,7 @@ angularDirective("ng:bind", function(expression){ element.html(''); element.append(value); } else { - element.text(value); + element.text(value === _undefined ? '' : value); } } }, element); -- cgit v1.2.3