/* This will intercept the jQuery bind event * and logs the number of calls */ 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);