소스 검색

Rename variable

tags/0.7.3
Michael Jackson 13 년 전
부모
커밋
0be4e2b944
1개의 변경된 파일6개의 추가작업 그리고 6개의 파일을 삭제
  1. +6
    -6
      mustache.js

+ 6
- 6
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.


불러오는 중...
취소
저장