Side navigation
#7669 closed bug (invalid)
Opened December 01, 2010 05:15AM UTC
Closed December 01, 2010 06:14AM UTC
.css( propertyName, value ) not responding to queueing through delay
Reported by: | theodore.nielsen@gmail.com | Owned by: | |
---|---|---|---|
Priority: | undecided | Milestone: | 1.6 |
Component: | unfiled | Version: | 1.4.4 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
In a sample animation script:
$('#someDiv').delay( 300 ).fadeOut( animateSpeed ); $('#anotherDiv').delay( 600 ).addClass( 'someClass' ); $('#anotherDivsMate').delay( 600 ).css( 'display', 'table-cell' );
The css( propertyName, value )
setter is ignoring the queueing of the 600ms delay and is executing on $(document).ready()
.
Attachments (0)
Change History (1)
Changed December 01, 2010 06:14AM UTC by comment:1
resolution: | → invalid |
---|---|
status: | new → closed |
Thank you for your time and interest in helping the jQuery project!!
From the docs (http://api.jquery.com/delay):
"The .delay() method is best for delaying between queued jQuery effects. Because it is limited—it doesn't, for example, offer a way to cancel the delay—.delay() is not a replacement for JavaScript's native setTimeout function, which may be more appropriate for certain use cases."
the .css() method is not put in a queue and, like many jQuery methods, it does not work with .delay()