Title: Place of return statement in a jQuery plugin in code snippet | Chapter 8 Web Patterns · Issue #2 · stimms/JavaScriptPatterns · GitHub
Open Graph Title: Place of return statement in a jQuery plugin in code snippet | Chapter 8 Web Patterns · Issue #2 · stimms/JavaScriptPatterns
X Title: Place of return statement in a jQuery plugin in code snippet | Chapter 8 Web Patterns · Issue #2 · stimms/JavaScriptPatterns
Description: 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 aft...
Open Graph Description: 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...
X Description: 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...
Opengraph URL: https://github.com/stimms/JavaScriptPatterns/issues/2
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Place of return statement in a jQuery plugin in code snippet | Chapter 8 Web Patterns","articleBody":"On p. 178 your book provides an example of a jQuery plugin like this:\n\n```\n$.fn.yeller = function () {\n this.each(function (_, item) {\n $(item).val($(item).val().toUpperCase());\n return this;\n });\n}\n```\n\nShouldn't it actually `return this` only once after the loop (instead of every iteration) or, better yet, `return this.each()`, as in the [documentation](https://learn.jquery.com/plugins/basic-plugin-creation/#using-the-each-method).\n","author":{"url":"https://github.com/imrek","@type":"Person","name":"imrek"},"datePublished":"2016-07-29T14:23:55.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/2/JavaScriptPatterns/issues/2"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:ac59e7f2-7184-146a-03ea-3a4ff009d383 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D66E:1AD267:1216CD9:19603C6:69726664 |
| html-safe-nonce | 25b57c0099a2d34515309060adf4bf657071e22cd2cc5dccce75fd5c7cf61f81 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENjZFOjFBRDI2NzoxMjE2Q0Q5OjE5NjAzQzY6Njk3MjY2NjQiLCJ2aXNpdG9yX2lkIjoiMTE0NzU4MzA4OTY2MDI5MDY2MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 655389ebd12c354f3d1bafeb30099c7c952eea8d237270420ad3eb5244c41984 |
| hovercard-subject-tag | issue:168336097 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/stimms/JavaScriptPatterns/2/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c451634c4bd0d621fad2fbd63dd06e158e2478a26c762d4751ee6d6dae7f9fc4/stimms/JavaScriptPatterns/issues/2 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c451634c4bd0d621fad2fbd63dd06e158e2478a26c762d4751ee6d6dae7f9fc4/stimms/JavaScriptPatterns/issues/2 |
| og:image:alt | 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... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | imrek |
| hostname | github.com |
| expected-hostname | github.com |
| None | ab2c8e6ec49d8737f6bf007a86b2c4a2bc434bba562c524e0c76465bc9ed358b |
| turbo-cache-control | no-preview |
| go-import | github.com/stimms/JavaScriptPatterns git https://github.com/stimms/JavaScriptPatterns.git |
| octolytics-dimension-user_id | 153912 |
| octolytics-dimension-user_login | stimms |
| octolytics-dimension-repository_id | 21546761 |
| octolytics-dimension-repository_nwo | stimms/JavaScriptPatterns |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 21546761 |
| octolytics-dimension-repository_network_root_nwo | stimms/JavaScriptPatterns |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 76f982acc7b406671507aee04f00d64414a22dbf |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width