Преглед изворни кода

Update wrappers/jquery/mustache.js.post

Switched from String.prototype.trim() to jQuery.trim() for IE8 and below support
tags/0.7.3
Henrik Kok пре 13 година
родитељ
комит
da531727fb
1 измењених фајлова са 1 додато и 2 уклоњено
  1. +1
    -2
      wrappers/jquery/mustache.js.post

+ 1
- 2
wrappers/jquery/mustache.js.post Прегледај датотеку

@@ -1,11 +1,10 @@

$.mustache = function (template, view, partials) { $.mustache = function (template, view, partials) {
return Mustache.render(template, view, partials); return Mustache.render(template, view, partials);
}; };


$.fn.mustache = function (view, partials) { $.fn.mustache = function (view, partials) {
return $(this).map(function (i, elm) { return $(this).map(function (i, elm) {
var template = $(elm).html().trim();
var template = $.trim($(elm).html());
var output = $.mustache(template, view, partials); var output = $.mustache(template, view, partials);
return $(output).get(); return $(output).get();
}); });


Loading…
Откажи
Сачувај