Skip to content

Instantly share code, notes, and snippets.

@NickJosevski
Created February 9, 2012 22:13
Show Gist options
  • Save NickJosevski/1783716 to your computer and use it in GitHub Desktop.
Save NickJosevski/1783716 to your computer and use it in GitHub Desktop.
Load() callback
$("#core").load(href, function () {
setupClicks();
});
function setupClicks() {
$("a").unbind("click", clickHandler);
$("a").on("click", clickHandler);
};
/* --- vs --- */
$("#core").load(href, function () {
$("a").unbind("click", clickHandler);
$("a").on("click", clickHandler);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment