We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
On p. 178 your book provides an example of a jQuery plugin like this:
$.fn.yeller = function () { this.each(function (_, item) { $(item).val($(item).val().toUpperCase()); return this; }); }
Shouldn't it actually return this only once after the loop (instead of every iteration) or, better yet, return this.each(), as in the documentation.
return this
return this.each()
The text was updated successfully, but these errors were encountered:
No branches or pull requests
On p. 178 your book provides an example of a jQuery plugin like this:
Shouldn't it actually
return this
only once after the loop (instead of every iteration) or, better yet,return this.each()
, as in the documentation.The text was updated successfully, but these errors were encountered: