diff options
author | kpdecker <kpdecker@gmail.com> | 2013-08-15 10:30:15 -0500 |
---|---|---|
committer | kpdecker <kpdecker@gmail.com> | 2013-08-15 10:30:15 -0500 |
commit | 0b92db7b0ccd5c347cfe2f14571f998b84185a2e (patch) | |
tree | fb175226e41b614780f915e7b2a20fedcdd70b5d | |
parent | 534d0ebcc3c242b539b2c37a54dbae8d81255eca (diff) | |
download | handlebars.js-0b92db7b0ccd5c347cfe2f14571f998b84185a2e.zip handlebars.js-0b92db7b0ccd5c347cfe2f14571f998b84185a2e.tar.gz handlebars.js-0b92db7b0ccd5c347cfe2f14571f998b84185a2e.tar.bz2 |
Rebuild
-rw-r--r-- | dist/handlebars.js | 6 | ||||
-rw-r--r-- | dist/handlebars.runtime.js | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/dist/handlebars.js b/dist/handlebars.js index e0a8368..1942eb5 100644 --- a/dist/handlebars.js +++ b/dist/handlebars.js @@ -160,7 +160,7 @@ Handlebars.registerHelper('if', function(conditional, options) { var type = toString.call(conditional); if(type === functionType) { conditional = conditional.call(this); } - if(!conditional || Handlebars.Utils.isEmpty(conditional)) { + if(Handlebars.Utils.isEmpty(conditional)) { return options.inverse(this); } else { return options.fn(this); @@ -813,7 +813,7 @@ Handlebars.SafeString = function(string) { this.string = string; }; Handlebars.SafeString.prototype.toString = function() { - return this.string.toString(); + return "" + this.string; }; var escape = { @@ -852,7 +852,7 @@ Handlebars.Utils = { // Force a string conversion as this will be done by the append regardless and // the regex test will do this transparently behind the scenes, causing issues if // an object's to string has escaped characters in it. - string = string.toString(); + string = "" + string; if(!possible.test(string)) { return string; } return string.replace(badChars, escapeChar); diff --git a/dist/handlebars.runtime.js b/dist/handlebars.runtime.js index fac2cc5..947b8f0 100644 --- a/dist/handlebars.runtime.js +++ b/dist/handlebars.runtime.js @@ -160,7 +160,7 @@ Handlebars.registerHelper('if', function(conditional, options) { var type = toString.call(conditional); if(type === functionType) { conditional = conditional.call(this); } - if(!conditional || Handlebars.Utils.isEmpty(conditional)) { + if(Handlebars.Utils.isEmpty(conditional)) { return options.inverse(this); } else { return options.fn(this); @@ -202,7 +202,7 @@ Handlebars.SafeString = function(string) { this.string = string; }; Handlebars.SafeString.prototype.toString = function() { - return this.string.toString(); + return "" + this.string; }; var escape = { @@ -241,7 +241,7 @@ Handlebars.Utils = { // Force a string conversion as this will be done by the append regardless and // the regex test will do this transparently behind the scenes, causing issues if // an object's to string has escaped characters in it. - string = string.toString(); + string = "" + string; if(!possible.test(string)) { return string; } return string.replace(badChars, escapeChar); |