Ver código fonte

Optimize `Writer.prototype.escapedValue`

pull/754/head
urain39 6 anos atrás
pai
commit
061fb97d9e
3 arquivos alterados com 3 adições e 3 exclusões
  1. +1
    -1
      mustache.js
  2. +1
    -1
      mustache.min.js
  3. +1
    -1
      mustache.mjs

+ 1
- 1
mustache.js Ver arquivo

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

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


+ 1
- 1
mustache.min.js
Diferenças do arquivo suprimidas por serem muito extensas
Ver arquivo


+ 1
- 1
mustache.mjs Ver arquivo

@@ -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 mustache.escape(value);
return typeof value === 'number' ? value : mustache.escape(value);
};

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


Carregando…
Cancelar
Salvar