Bladeren bron

Declare stripSpace with var

tags/0.5.2
Michael Jackson 14 jaren geleden
bovenliggende
commit
cae4fd5abe
1 gewijzigde bestanden met toevoegingen van 2 en 2 verwijderingen
  1. +2
    -2
      mustache.js

+ 2
- 2
mustache.js Bestand weergeven

@@ -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;



Laden…
Annuleren
Opslaan