Skip to content

Instantly share code, notes, and snippets.

@alfrekjv
Created November 23, 2011 16:59
Show Gist options
  • Save alfrekjv/1389207 to your computer and use it in GitHub Desktop.
Save alfrekjv/1389207 to your computer and use it in GitHub Desktop.
/**
* jQuery Retraso - Simple plugin de jQuery para definir un retraso (al estilo del setInterval() ).
* Copyright (c) 2009 Alfredo Juarez | http://juvasoft.com
*
*/
$.fn.retraso = function( time, name ) {
return this.queue( ( name || "fx" ), function() {
var self = this;
setTimeout(function() { $.dequeue(self); } , time );
} );
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment