jQuery doTimeout v1.0

|

I haven’t had a reason to update jQuery doTimeout in a long time, mainly because nobody has had any suggestions on how to improve it.. until last night, when Brandon Aaron suggested that, “hey, wouldn’t be great if doTimeout could be called like this: $('div').show().doTimeout( 2000, 'hide' ), passing a string jQuery method name instead of a function reference?”

Well, it seemed like a great idea to me, so I took a look at the plugin, spent about fifteen minutes adding four lines of code.. and then spent another few hours updating documentation, examples, and unit tests.

The end result is version 1.0, which makes it even easier for people to delay execution of their jQuery methods. Just take a look at the first hover intent example to get an idea of how easy it is now!

Post A Comment

  • Any of these HTML tags may be used for style: a, b, i, br, p, strong, em, pre, code.
  • Multi-line JavaScript code should be wrapped in <pre class="brush:js"></pre>
    (supported syntax highlighting brushes: js, css, php, plain, bash, ruby, html, xml)
  • Use &lt; instead of < and &gt; instead of > in the examples themselves.