Jan Lehnardt 16 лет назад
Родитель
Сommit
bb581c4356
1 измененных файлов: 4 добавлений и 4 удалений
  1. +4
    -4
      mustache.js

+ 4
- 4
mustache.js Просмотреть файл

@@ -100,7 +100,7 @@ var Mustache = function() {
return that.map(value, function(row) {
return that.render(content, that.merge(context,
that.create_context(row)), partials, true);
}).join('');
}).join("");
} else if(value) { // boolean section
return that.render(content, context, partials, true);
} else {
@@ -233,7 +233,7 @@ var Mustache = function() {
},

is_object: function(a) {
return a && typeof a == 'object'
return a && typeof a == "object"
},

/*
@@ -243,7 +243,7 @@ var Mustache = function() {
*/
is_array: function(a) {
return (a &&
typeof a === 'object' &&
typeof a === "object" &&
a.constructor === Array);
},

@@ -251,7 +251,7 @@ var Mustache = function() {
Gets rid of leading and trailing whitespace
*/
trim: function(s) {
return s.replace(/^\s*|\s*$/g, '');
return s.replace(/^\s*|\s*$/g, "");
},

/*


Загрузка…
Отмена
Сохранить