From bb581c4356877c0a22894108ae679912c112ca44 Mon Sep 17 00:00:00 2001 From: Jan Lehnardt Date: Wed, 3 Feb 2010 19:55:02 -0800 Subject: [PATCH] style --- mustache.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mustache.js b/mustache.js index e404e4e..b8ea29d 100644 --- a/mustache.js +++ b/mustache.js @@ -100,7 +100,7 @@ var Mustache = function() { return that.map(value, function(row) { return that.render(content, that.merge(context, that.create_context(row)), partials, true); - }).join(''); + }).join(""); } else if(value) { // boolean section return that.render(content, context, partials, true); } else { @@ -233,7 +233,7 @@ var Mustache = function() { }, is_object: function(a) { - return a && typeof a == 'object' + return a && typeof a == "object" }, /* @@ -243,7 +243,7 @@ var Mustache = function() { */ is_array: function(a) { return (a && - typeof a === 'object' && + typeof a === "object" && a.constructor === Array); }, @@ -251,7 +251,7 @@ var Mustache = function() { Gets rid of leading and trailing whitespace */ trim: function(s) { - return s.replace(/^\s*|\s*$/g, ''); + return s.replace(/^\s*|\s*$/g, ""); }, /*