Skip to content

Instantly share code, notes, and snippets.

@themusicman
Created March 27, 2012 14:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save themusicman/2216288 to your computer and use it in GitHub Desktop.
Save themusicman/2216288 to your computer and use it in GitHub Desktop.
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
Copy link

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