Skip to content

Instantly share code, notes, and snippets.

@kyo-ago
Created May 20, 2010 12:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kyo-ago/407491 to your computer and use it in GitHub Desktop.
Save kyo-ago/407491 to your computer and use it in GitHub Desktop.
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