Bug Tracker

Ticket #6154 (closed bug: worksforme)

Opened 5 years ago

Last modified 5 years ago

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:


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

comment:1 Changed 5 years ago by john

  • Status changed from new to closed
  • Resolution set to worksforme
  • Component changed from core to unfiled

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

Note: See TracTickets for help on using tickets.