I think that something like this is a good candidate for the core. There's so many requests and things for "how can I pause my code", etc.
I can't see this being all that large in size. -----Original Message----- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tane Piper Sent: Tuesday, October 30, 2007 12:32 PM To: jquery-en@googlegroups.com Subject: [jQuery] [INTERESTING PLUGIN] Wait plugin I came across an interesting plugin today on my travels around the web: http://blog.jcoglan.com/2007/10/30/asynchronous-function-chaining-in-javascr ipt It's interesting, because it's a setTimeout plugin but is coded so it can be chained along my event queue. For example, in my code before I had: $(self).animate({top: -90, opacity: 0.9}, 2000); setTimeout(function() { $(self).animate({ top: -150, opacity: 0 }, 1000); }, 5000); But using this plugin, I can now do: $(self).animate({top: -90, opacity: 0.9}, 2000).wait(5).then.animate({ top: -150, opacity: 0 }, 1000); To me, this makes a lot of sense, and also looks more jQuery-like. Kudos for the developer for making this one. -- Tane Piper Blog - http://digitalspaghetti.me.uk AJAX Pastebin - http://pastemonkey.org This email is: [ ] blogable [ x ] ask first [ ] private