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: github.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:4d1c5c35-e3b1-17a9-7cec-ada916818c9d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8B06:375A95:4DACB:6769A:6972ED60 |
| html-safe-nonce | 20fdd7bbb84b9080966848b2edc1eeaf63a503c80a4a9f277129b4abaf5d3528 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QjA2OjM3NUE5NTo0REFDQjo2NzY5QTo2OTcyRUQ2MCIsInZpc2l0b3JfaWQiOiI1MjI2NzYyODk2NDcyNzMwOTc2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 14f0da29155eae895a66b9be78b8e82d7b3de538994450ad5781d3b8adb0940f |
| 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 | 25ef7e923c492d9047af899b2ba66bfcb0a78059369630f2ce2cf57826ed6a53 |
| 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 | c0badd0db61d89a34653af2d762b2eb8c84f9d59 |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width