-
Notifications
You must be signed in to change notification settings - Fork 480
event-helpers.md .toggle description inconsistent with API docs #382
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
Comments
This is a very old issue but the page still discusses about |
Yeah, we shouldn't teach people how to write code using deprecated features. ;) |
AurelioDeRosa
added a commit
to AurelioDeRosa/learn.jquery.com
that referenced
this issue
Jul 7, 2014
Deleted example of the `toggle()` method removed in jQuery 1.9, as discussed in issue jquery#382.
Closed
PR: #529. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
On the event helpers section of learn.jquery.com, it says the .toggle function is to be given 2 or more functions that are called when an onclick event occurs.
However, the .toggle method description in the documentation talks about it being used to toggle the visibility of elements.
It looks like the first usage was deprecated in 1.8 and removed in 1.9, so this should probably be updated to show its newer usage.
See:
http://api.jquery.com/toggle-event/
http://api.jquery.com/toggle/
http://learn.jquery.com/events/event-helpers/
The text was updated successfully, but these errors were encountered: