Create a gist now

Instantly share code, notes, and snippets.

Embed
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

This comment has been minimized.

Show comment
Hide comment
@ORESoftware

ORESoftware Jun 27, 2015

ok but what does jQuery.proxy do

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