-
-
Save collin/3363 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
$.password | |
:blur | |
if @value === "" | |
.hide() | |
// Eventually, indenting beneath something will set it as the context | |
.prev() | |
.show().val(@default_value) | |
.blur() | |
$.faux-password | |
:focus | |
.hide().next().show().focus() |
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
Ah, I had not noticed implied dot access works anywhere. | |
"any indentation creating a context" looks marvelous | |
Thanks! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment