Ticket #6168 (closed feature: wontfix)
Add timer functionallity to core
| Reported by: | AzaToth | Owned by: | |
|---|---|---|---|
| Priority: | Milestone: | 1.4.2 | |
| Component: | unfiled | Version: | 1.4.1 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
using window.setTimeout and window.setInterval feels wrong in a jQuery environment, and as well that different browsers has different support for functionality for them.
At the moment there are two different, and semi-usable plug-ins for timer functionality:
http://plugins.jquery.com/project/timers http://benalman.com/projects/jquery-dotimeout-plugin/
Change History
comment:2 Changed 3 years ago by AzaToth
- Status changed from closed to reopened
- Resolution wontfix deleted
Documentation for .delay() states:
jQuery.delay() is designed for delaying between queued jQuery effects, and is not a replacement for JavaScript's native setTimeout function, which may be more appropriate for certain use cases.
comment:3 Changed 3 years ago by john
- Status changed from reopened to closed
- Resolution set to wontfix
Sure - If you wish to have a discussion then please feel free to open it up for discussion in the forums. As it stands there are two plugins that cover the cases that jQuery doesn't handle explicitly and that seems more than sufficient. I don't particularly think this is appropriate for jQuery core, especially since there is no direct equivalent to working with DOM elements.
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

We already have a .delay() in core, this should serve as a good substitute for the times in which you need to delay some jQuery code.