Simplify falsy handling

This commit is contained in:
kpdecker
2013-08-24 22:20:23 -05:00
parent 6e6acaac0d
commit 623fdad59f
+1 -1
View File
@@ -56,7 +56,7 @@ Handlebars.Utils = {
// don't escape SafeStrings, since they're already safe
if (string instanceof Handlebars.SafeString) {
return string.toString();
} else if (string == null || string === false) {
} else if (!string && string !== 0) {
return "";
}