Skip to content

Instantly share code, notes, and snippets.

@chuyeow
Created November 5, 2009 07:42
Show Gist options
  • Save chuyeow/226858 to your computer and use it in GitHub Desktop.
Save chuyeow/226858 to your computer and use it in GitHub Desktop.
Good for checking number of event bindings in place when using jQuery. From http://ajaxian.com/archives/jquery-bondage
jQuery.fn.bind = function (bind) {
return function () {
console.count("jQuery bind count");
console.log("jQuery bind %o", this);
return bind.apply(this, arguments);
};
}(jQuery.fn.bind);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment