aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMisko Hevery2010-10-13 10:51:16 -0700
committerMisko Hevery2010-10-13 10:51:16 -0700
commit3ab49538a414a36c97ed3735c2473eefcf7be073 (patch)
tree444810c3098d39a3867d728aec86249b1ea32506 /src
parent2cb9497d02afdcfc19ea52fddcd6d1f04d81ffdb (diff)
downloadangular.js-3ab49538a414a36c97ed3735c2473eefcf7be073.tar.bz2
fixed issue where ng:bind would not reset value if expression returned undefined
Diffstat (limited to 'src')
-rw-r--r--src/directives.js2
1 files changed, 1 insertions, 1 deletions
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);