chuyeow (owner)

Revisions

gist: 226858 Download_button fork
public
Description:
Good for checking number of event bindings in place when using jQuery. From http://ajaxian.com/archives/jquery-bondage
Public Clone URL: git://gist.github.com/226858.git
Embed All Files: show embed
jQuery event binding count.js #
1
2
3
4
5
6
7
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);