Explorar el Código

Merge pull request #287 from henrikkok/master

jQuery wrapper: use jQuery.trim() instead of String.prototype.trim()
tags/0.7.3
Michael Jackson hace 13 años
padre
commit
8b2b3cdbc5
Se han modificado 1 ficheros con 1 adiciones y 2 borrados
  1. +1
    -2
      wrappers/jquery/mustache.js.post

+ 1
- 2
wrappers/jquery/mustache.js.post Ver fichero

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

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

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


Cargando…
Cancelar
Guardar