Created
September 15, 2009 23:22
-
-
Save quirkey/187753 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
;(function($) { | |
$.fn.soon = function(what, when) { | |
var $this, args; | |
if (typeof when == "undefined") when = 5000; | |
args = $.makeArray(arguments).slice(2); | |
$this = $(this); | |
setTimeout(function() { | |
$this[what].apply($this,args); | |
}, when); | |
return $this; | |
}; | |
})(jQuery); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment