Carregamento assíncrono de modelos no backbone
window.loadTmpl = (function () { var templates = {}, temps, buildObj, getTemplate; $.get(‘templates/templates.html’, function(html) { buildObj( html ); }); buildObj = function (html) { temps = $( html ).children(‘script’); $.each( …
Continuar lendo