Created
November 5, 2009 07:42
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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