From 0be4e2b9446ccac052a8e74e57fe6d7444dcc231 Mon Sep 17 00:00:00 2001 From: Michael Jackson Date: Mon, 22 Apr 2013 20:13:55 -0700 Subject: [PATCH] Rename variable --- mustache.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/mustache.js b/mustache.js index 9294385..bee26f9 100644 --- a/mustache.js +++ b/mustache.js @@ -481,13 +481,13 @@ mustache.escape = escapeHtml; // All Mustache.* functions use this writer. - var _writer = new Writer(); + var defaultWriter = new Writer(); /** * Clears all cached templates and partials in the default writer. */ mustache.clearCache = function () { - return _writer.clearCache(); + return defaultWriter.clearCache(); }; /** @@ -495,7 +495,7 @@ * writer. */ mustache.compile = function (template, tags) { - return _writer.compile(template, tags); + return defaultWriter.compile(template, tags); }; /** @@ -503,7 +503,7 @@ * function using the default writer. */ mustache.compilePartial = function (name, template, tags) { - return _writer.compilePartial(name, template, tags); + return defaultWriter.compilePartial(name, template, tags); }; /** @@ -511,7 +511,7 @@ * function using the default writer. */ mustache.compileTokens = function (tokens, template) { - return _writer.compileTokens(tokens, template); + return defaultWriter.compileTokens(tokens, template); }; /** @@ -519,7 +519,7 @@ * default writer. */ mustache.render = function (template, view, partials) { - return _writer.render(template, view, partials); + return defaultWriter.render(template, view, partials); }; // This is here for backwards compatibility with 0.4.x.