瀏覽代碼

Fix return type for TypeScript

pull/754/head
urain39 6 年之前
父節點
當前提交
377a1abd7b
共有 3 個文件被更改,包括 3 次插入3 次删除
  1. +1
    -1
      mustache.js
  2. +1
    -1
      mustache.min.js
  3. +1
    -1
      mustache.mjs

+ 1
- 1
mustache.js 查看文件

@@ -657,7 +657,7 @@
Writer.prototype.escapedValue = function escapedValue (token, context) {
var value = context.lookup(token[1]);
if (value != null)
return typeof value === 'number' ? value : mustache.escape(value);
return typeof value === 'number' ? String(value) : mustache.escape(value);
};

Writer.prototype.rawValue = function rawValue (token) {


+ 1
- 1
mustache.min.js
文件差異過大導致無法顯示
查看文件


+ 1
- 1
mustache.mjs 查看文件

@@ -650,7 +650,7 @@ Writer.prototype.unescapedValue = function unescapedValue (token, context) {
Writer.prototype.escapedValue = function escapedValue (token, context) {
var value = context.lookup(token[1]);
if (value != null)
return typeof value === 'number' ? value : mustache.escape(value);
return typeof value === 'number' ? String(value) : mustache.escape(value);
};

Writer.prototype.rawValue = function rawValue (token) {


Loading…
取消
儲存