Created
March 27, 2012 14:20
-
-
Save themusicman/2216288 to your computer and use it in GitHub Desktop.
A little jQuery proxy love
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var templateRetrieved = this.getTemplate(); | |
jQuery.when(templateRetrieved).then(jQuery.proxy(function(template){ | |
var html = this.renderTemplate(template, data); | |
this.$el.html(html); | |
}, this)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ok but what does jQuery.proxy do