Opened 13 years ago
Closed 13 years ago
#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: | |
Blocked by: | Blocking: |
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 (1)
comment:1 Changed 13 years ago by
Component: | core → unfiled |
---|---|
Resolution: | → worksforme |
Status: | new → closed |
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/