-
-
Save jaan/9444327 to your computer and use it in GitHub Desktop.
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
| // Please, please, please don't try this at home | |
| $(document).ready(function() { | |
| $("a.meatloaf").on("click", function(e) { | |
| // Once upon a time, there was a developer... | |
| e.preventDefault(); // Prevent the default behavior | |
| e.stopPropagation(); // Not working like expected, so stop it | |
| e.stopImmediatePropagation(); // No really, stop it | |
| return false; // Just in case... STOP IT! | |
| // Moral of story: Know what each of the above statements mean | |
| }); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment