Create a gist now

Instantly share code, notes, and snippets.

A little jQuery proxy love
var templateRetrieved = this.getTemplate();
jQuery.when(templateRetrieved).then(jQuery.proxy(function(template){
var html = this.renderTemplate(template, data);
this.$el.html(html);
}, this));
@ORESoftware

ok but what does jQuery.proxy do

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment