Created
November 23, 2011 16:59
-
-
Save alfrekjv/1389207 to your computer and use it in GitHub Desktop.
This file contains 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
/** | |
* 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