Created
October 31, 2008 18:31
-
-
Save quinn/21383 to your computer and use it in GitHub Desktop.
This file contains 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
$.fn.tap = function (fun) { | |
fun.call(this) | |
} | |
// oops this is pointless, these are the same | |
$('whatever') | |
.tap(function () { | |
this // is pointless | |
}); | |
// same as | |
function () { | |
}.call( $('whatever') ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment