소스 검색

whitespace

tags/0.2.2
Jan Lehnardt 16 년 전
부모
커밋
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
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>

Thanks @defunkt for the awesome code.
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
*/
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
*/
find: function(name, context) {
@@ -256,7 +257,7 @@ var Mustache = function() {

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


불러오는 중...
취소
저장