Skip to content

http://api.jquery.com/one/ example needs named parameter #1008

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

Closed
therobinkim opened this issue Dec 19, 2016 · 2 comments
Closed

http://api.jquery.com/one/ example needs named parameter #1008

therobinkim opened this issue Dec 19, 2016 · 2 comments

Comments

@therobinkim
Copy link

$( "#foo" ).one( "click mouseover", function() {
  alert( "The " + event.type + " event happened!" );
});

needs an event in the callback function parameter list

$( "#foo" ).one( "click mouseover", function(event) {
  alert( "The " + event.type + " event happened!" );
});

http://api.jquery.com/one/

@AurelioDeRosa
Copy link
Member

Thank you for reporting this issue. Do you want to submit a PR for this?

@tcoughlin3
Copy link
Contributor

I'd love to help with this. I hope you don't mind, I submitted a PR (#1016)!

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

No branches or pull requests

3 participants