public
Created

A little jQuery proxy love

  • Download Gist
jquery-proxy-love
1 2 3 4 5 6
var templateRetrieved = this.getTemplate();
 
jQuery.when(templateRetrieved).then(jQuery.proxy(function(template){
var html = this.renderTemplate(template, data);
this.$el.html(html);
}, this));

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.