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

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

@@ -1,10 +1,11 @@
/* /*
Shamless port of http://github.com/defunkt/mustache Shamless port of http://github.com/defunkt/mustache
by Jan Lehnardt <jan@apache.org>, Alexander Lang <alex@upstream-berlin.com>,
by Jan Lehnardt <jan@apache.org>,
Alexander Lang <alex@upstream-berlin.com>,
Sebastian Cohnen <sebastian.cohnen@googlemail.com> Sebastian Cohnen <sebastian.cohnen@googlemail.com>


Thanks @defunkt for the awesome code. Thanks @defunkt for the awesome code.
See http://github.com/defunkt/mustache for more info. See http://github.com/defunkt/mustache for more info.
*/ */


@@ -68,7 +69,7 @@ var Mustache = function() {
}); });
}, },


/*
/*
Tries to find a partial in the global scope and render it Tries to find a partial in the global scope and render it
*/ */
render_partial: function(name, context, partials) { render_partial: function(name, context, partials) {
@@ -168,7 +169,7 @@ var Mustache = function() {
}, },


/* /*
find `name` in current `context`. That is find me a value
find `name` in current `context`. That is find me a value
from the view object from the view object
*/ */
find: function(name, context) { find: function(name, context) {
@@ -256,7 +257,7 @@ var Mustache = function() {


/* /*
Why, why, why? Because IE. Cry, cry cry. Why, why, why? Because IE. Cry, cry cry.
*/
*/
map: function(array, fn) { map: function(array, fn) {
if (typeof array.map == "function") { if (typeof array.map == "function") {
return array.map(fn) return array.map(fn)


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