Sfoglia il codice sorgente

Fix return type for TypeScript

pull/754/head
urain39 6 anni fa
parent
commit
377a1abd7b
3 ha cambiato i file con 3 aggiunte e 3 eliminazioni
  1. +1
    -1
      mustache.js
  2. +1
    -1
      mustache.min.js
  3. +1
    -1
      mustache.mjs

+ 1
- 1
mustache.js Vedi File

@@ -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
File diff soppresso perché troppo grande
Vedi File


+ 1
- 1
mustache.mjs Vedi File

@@ -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…
Annulla
Salva