Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $.fn.wait = function(time, type) {
- time = time || 1000;
- type = type || 'fx';
- return this.queue(type, function() {
- var self = this;
- window.setTimeout(function() {
- $(self).dequeue();
- }, time);
- });
- }
Add Comment
Please, Sign In to add comment