Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect signature of .ready() handler #1167

Open
goffioul opened this issue Jul 17, 2020 · 1 comment
Open

Incorrect signature of .ready() handler #1167

goffioul opened this issue Jul 17, 2020 · 1 comment

Comments

@goffioul
Copy link

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).

@mgol
Copy link
Member

mgol commented Aug 21, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants