Ver código fonte

Declare stripSpace with var

tags/0.5.2
Michael Jackson 14 anos atrás
pai
commit
cae4fd5abe
1 arquivos alterados com 2 adições e 2 exclusões
  1. +2
    -2
      mustache.js

+ 2
- 2
mustache.js Ver arquivo

@@ -448,7 +448,7 @@ var Mustache = (typeof module !== "undefined" && module.exports) || {};

// Strips all whitespace tokens array for the current line
// if there was a {{#tag}} on it and otherwise only space.
function stripSpace() {
var stripSpace = function () {
if (hasTag && !nonSpace) {
while (spaces.length) {
tokens.splice(spaces.pop(), 1);
@@ -459,7 +459,7 @@ var Mustache = (typeof module !== "undefined" && module.exports) || {};

hasTag = false;
nonSpace = false;
}
};

var type, value, chr;



Carregando…
Cancelar
Salvar