Bug Tracker

Opened 6 years ago

Closed 6 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 6 years ago by john

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

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.