diff options
author | wycats <wycats@gmail.com> | 2010-12-04 22:26:23 -0500 |
---|---|---|
committer | wycats <wycats@gmail.com> | 2010-12-04 22:26:41 -0500 |
commit | 35b4d9fd01c850eab74f80fd5672a66abda81ea5 (patch) | |
tree | e9d139812b2398d2ebef200e0baa4dcb9b2e3344 /lib/handlebars/utils.js | |
parent | 4db1abcd742e2044a0c745692fe90dfe71e6c74d (diff) | |
download | handlebars.js-35b4d9fd01c850eab74f80fd5672a66abda81ea5.zip handlebars.js-35b4d9fd01c850eab74f80fd5672a66abda81ea5.tar.gz handlebars.js-35b4d9fd01c850eab74f80fd5672a66abda81ea5.tar.bz2 |
linting
Diffstat (limited to 'lib/handlebars/utils.js')
-rw-r--r-- | lib/handlebars/utils.js | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/lib/handlebars/utils.js b/lib/handlebars/utils.js index 654b317..a600d6b 100644 --- a/lib/handlebars/utils.js +++ b/lib/handlebars/utils.js @@ -8,10 +8,10 @@ Handlebars.Exception = function(message) { // Build out our basic SafeString type Handlebars.SafeString = function(string) { this.string = string; -} +}; Handlebars.SafeString.prototype.toString = function() { return this.string.toString(); -} +}; Handlebars.Utils = { escapeExpression: function(string) { @@ -27,18 +27,14 @@ Handlebars.Utils = { switch(str) { case "&": return "&"; - break; case '"': return "\""; case "\\": return "\\\\"; - break; case "<": return "<"; - break; case ">": return ">"; - break; default: return str; } @@ -51,13 +47,13 @@ Handlebars.Utils = { return true; } else if (value === false) { return true; - } else if(Object.prototype.toString.call(value) === "[object Array]" && value.length == 0) { + } else if(Object.prototype.toString.call(value) === "[object Array]" && value.length === 0) { return true; } else { return false; } } -} +}; // END(BROWSER) exports.Utils = Handlebars.Utils; |