Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
jQuery.tap.js
$.fn.tap = function (func) {
$.ifFunction(func) ? func.call(this, this) : console.debug(this)
return this;
};
$(‘div’).find(‘a’).tap(function () {
console.debug(this[0]);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment