Created
June 15, 2015 10:05
-
-
Save nini/dc001d2973f75b332f6e to your computer and use it in GitHub Desktop.
jQuery delays + queue for autoclose example
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
button = $('button'); | |
if(button.hasClass('close')) { | |
button.delay(1000).queue(function() { | |
$(this).click().dequeue(); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment