From cae4fd5abe21b5f3ba5694ee35ef5fe765843ad6 Mon Sep 17 00:00:00 2001 From: Michael Jackson Date: Tue, 12 Jun 2012 14:46:23 -0700 Subject: [PATCH] Declare stripSpace with var --- mustache.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mustache.js b/mustache.js index 7dee0e9..0fef360 100644 --- a/mustache.js +++ b/mustache.js @@ -448,7 +448,7 @@ var Mustache = (typeof module !== "undefined" && module.exports) || {}; // Strips all whitespace tokens array for the current line // if there was a {{#tag}} on it and otherwise only space. - function stripSpace() { + var stripSpace = function () { if (hasTag && !nonSpace) { while (spaces.length) { tokens.splice(spaces.pop(), 1); @@ -459,7 +459,7 @@ var Mustache = (typeof module !== "undefined" && module.exports) || {}; hasTag = false; nonSpace = false; - } + }; var type, value, chr;