Skip to main content

Bug Tracker

Side navigation

#7721 closed bug (invalid)

Opened December 07, 2010 02:44PM UTC

Closed December 07, 2010 03:53PM UTC

Last modified March 13, 2012 10:42PM UTC

Combination of hide, show and delay does not work

Reported by: bripkens.dev@gmail.com Owned by:
Priority: undecided Milestone: 1.6
Component: unfiled Version: 1.4.4
Keywords: Cc:
Blocked by: Blocking:
Description

The following very short jsfiddle entry explains everything:

http://jsfiddle.net/KKkTd/

What it shows is that $(..).show(0).delay(1000).hide(0) works, but show().delay(1000).hide() doesn't.

Attachments (0)
Change History (2)

Changed December 07, 2010 02:58PM UTC by anonymous comment:1

Something I forgot, I'm using Google chrome 8.0.552.215.

Changed December 07, 2010 03:53PM UTC by rwaldron comment:2

_comment0: This is intended. \ \ http://api.jquery.com/delay/ \ \ Added to jQuery in version 1.4, the .delay() method allows us to delay the execution of functions that follow it in the queue. It can be used with the standard effects queue or with a custom queue. Only subsequent events in a queue are delayed;''' for example this will not delay the no-arguments forms of .show() or .hide() which do not use the effects queue.''' \ \ 1291737527888821
_comment1: This is intended. \ 1291737668573131
resolution: → invalid
status: newclosed

This is intended.

http://api.jquery.com/delay/

Added to jQuery in version 1.4, the .delay() method allows us to delay the execution of functions that follow it in the queue. It can be used with the standard effects queue or with a custom queue. Only subsequent events in a queue are delayed; for example this will not delay the no-arguments forms of .show() or .hide() which do not use the effects queue.