Skip to content

Commit e074cf6

Browse files
author
gene
committed
added parameters for partials and streaming
1 parent 674aa53 commit e074cf6

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

jQueryMustache.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,9 @@
1111
// Licensed under the MIT license.
1212

1313
(function ($) {
14-
$.fn.mustache = function (data) {
15-
if (data && typeof data === 'object') {
16-
if (Mustache) {
17-
return $(Mustache.to_html(this.text(), data));
18-
}
14+
$.fn.mustache = function (data, partial, stream) {
15+
if (Mustache && data) {
16+
return $(Mustache.to_html(this.text(), data, partial, stream));
1917
}
2018
};
2119
})(jQuery);

0 commit comments

Comments
 (0)