Side navigation
#6154 closed bug (worksforme)
Opened February 23, 2010 08:16PM UTC
Closed February 27, 2010 03:22PM UTC
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?
Attachments (0)
Change History (1)
Changed February 27, 2010 03:22PM UTC by comment:1
component: | core → unfiled |
---|---|
resolution: | → worksforme |
status: | new → closed |
The current API docs can be found here, where that's been resolved:
http://api.jquery.com/ready/