Skip to content

Instantly share code, notes, and snippets.

@murtaugh murtaugh/wait.js
Created Nov 20, 2013

What would you like to do?
a function that does what I always expect .delay() to do
$.wait = function( callback, seconds){
return window.setTimeout( callback, seconds * 1000 );
// usage
$.wait( function(){ $("#message").slideUp() }, 5);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.