aboutsummaryrefslogtreecommitdiffstats
path: root/src/directives.js
diff options
context:
space:
mode:
authorIgor Minar2011-01-20 12:55:03 -0800
committerIgor Minar2011-01-20 12:55:03 -0800
commit4a569560d8b667e625f8d9c9aea2e02945af058c (patch)
tree442528a6081c3ac5a6e54b94409cd49cc581ae8a /src/directives.js
parent17ee0f031ac4a37bf9a1dc8c87ffac4bd164d1cc (diff)
downloadangular.js-4a569560d8b667e625f8d9c9aea2e02945af058c.tar.bz2
null and other falsy values should not be rendered in the view
Closes #242
Diffstat (limited to 'src/directives.js')
-rw-r--r--src/directives.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/directives.js b/src/directives.js
index 10d1f1e5..104ff9c8 100644
--- a/src/directives.js
+++ b/src/directives.js
@@ -210,7 +210,7 @@ angularDirective("ng:bind", function(expression, element){
element.html('');
element.append(value);
} else {
- element.text(value === _undefined ? '' : value);
+ element.text(value == _undefined ? '' : value);
}
}
}, element);