api.jquery.com icon indicating copy to clipboard operation
api.jquery.com copied to clipboard

Incorrect signature of .ready() handler

Open goffioul opened this issue 5 years ago • 1 comments

The reference documentation for .ready() handler does not specify any argument for the signature of the handler. However, the jQuery object is actually provided, which is quickly explained later in the section Aliasing the jQuery Object. This can be easily missed (like I did) and lead to writing incorrect code (like making jQuery triggering the ready event endlessly).

goffioul avatar Jul 17 '20 13:07 goffioul

Would you like to submit a PR with proposed changes? All the individual pages are located in their own files in https://github.com/jquery/api.jquery.com/tree/master/entries.

mgol avatar Aug 21 '20 10:08 mgol