Skip to content

Instantly share code, notes, and snippets.

@yoko
Created July 30, 2012 07:36
Show Gist options
  • Save yoko/3205523 to your computer and use it in GitHub Desktop.
Save yoko/3205523 to your computer and use it in GitHub Desktop.
var bind = function(context) {
$('.foo', context).foo();
...
};
$(function() {
bind();
$.get('/foo.html').done(function(html) {
html = $(html).appendTo('body');
bind(html);
});
...
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment