Explorar el Código

Rename variable

tags/0.7.3
Michael Jackson hace 13 años
padre
commit
0be4e2b944
Se han modificado 1 ficheros con 6 adiciones y 6 borrados
  1. +6
    -6
      mustache.js

+ 6
- 6
mustache.js Ver fichero

@@ -481,13 +481,13 @@
mustache.escape = escapeHtml; mustache.escape = escapeHtml;


// All Mustache.* functions use this writer. // All Mustache.* functions use this writer.
var _writer = new Writer();
var defaultWriter = new Writer();


/** /**
* Clears all cached templates and partials in the default writer. * Clears all cached templates and partials in the default writer.
*/ */
mustache.clearCache = function () { mustache.clearCache = function () {
return _writer.clearCache();
return defaultWriter.clearCache();
}; };


/** /**
@@ -495,7 +495,7 @@
* writer. * writer.
*/ */
mustache.compile = function (template, tags) { mustache.compile = function (template, tags) {
return _writer.compile(template, tags);
return defaultWriter.compile(template, tags);
}; };


/** /**
@@ -503,7 +503,7 @@
* function using the default writer. * function using the default writer.
*/ */
mustache.compilePartial = function (name, template, tags) { 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. * function using the default writer.
*/ */
mustache.compileTokens = function (tokens, template) { mustache.compileTokens = function (tokens, template) {
return _writer.compileTokens(tokens, template);
return defaultWriter.compileTokens(tokens, template);
}; };


/** /**
@@ -519,7 +519,7 @@
* default writer. * default writer.
*/ */
mustache.render = function (template, view, partials) { 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. // This is here for backwards compatibility with 0.4.x.


Cargando…
Cancelar
Guardar