Modify ↓
Ticket #6154 (closed bug: worksforme)
ready() sample code is unnecessarily complicated
| Reported by: | Tom Robinson | Owned by: | |
|---|---|---|---|
| Priority: | Milestone: | 1.4.2 | |
| Component: | unfiled | Version: | 1.4.1 |
| Keywords: | documentation | Cc: | |
| Blocking: | Blocked by: |
Description
The code at http://docs.jquery.com/Events/ready#source shows this: $(document).ready(function(){ $(document).ready(function () { $("p").text("The DOM is now loaded..."); }); });
Why are there two nested calls to ready() when one will do?
Change History
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

The current API docs can be found here, where that's been resolved: http://api.jquery.com/ready/