Oh, you're right, this is currently broken. Like you mentioned, the `$loginModal.on('hidden', $.noop)` call wasn't actually removing the old handler like I wanted. After reading the [documentation](https://api.jquery.com/off) I think the proper solution is to use `$loginModal.off('hidden')` to remove the old handler. This achieves what we want without having to set this `linkClicked` flag. Could you please do that instead?

Good catch! :)