Procházet zdrojové kódy

Optimize `Writer.prototype.escapedValue`

pull/754/head
urain39 před 6 roky
rodič
revize
061fb97d9e
3 změnil soubory, kde provedl 3 přidání a 3 odebrání
  1. +1
    -1
      mustache.js
  2. +1
    -1
      mustache.min.js
  3. +1
    -1
      mustache.mjs

+ 1
- 1
mustache.js Zobrazit soubor

@@ -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
Diff nebyl zobrazen, protože je příliš veliký
Zobrazit soubor


+ 1
- 1
mustache.mjs Zobrazit soubor

@@ -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) {


Načítá se…
Zrušit
Uložit