Title: Only last grid is updated on resize · Issue #4 · Pixabay/JavaScript-flexImages · GitHub
Open Graph Title: Only last grid is updated on resize · Issue #4 · Pixabay/JavaScript-flexImages
X Title: Only last grid is updated on resize · Issue #4 · Pixabay/JavaScript-flexImages
Description: Hello there, When using multiple grids with same selector, only the last one will be updated on resize. If you have n grids, the last one will be updated n times. As far as I understand problem is here : for (var i=0;i Open Graph Description: Hello there, When using multiple grids with same selector, only the last one will be updated on resize. If you have n grids, the last one will be updated n times. As far as I understand problem is ...
X Description: Hello there, When using multiple grids with same selector, only the last one will be updated on resize. If you have n grids, the last one will be updated n times. As far as I understand problem is ...
Opengraph URL: https://github.com/Pixabay/JavaScript-flexImages/issues/4
X: @github
Domain: github.com
Links:
Viewport: width=device-width
Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Only last grid is updated on resize","articleBody":"Hello there,\r\n\r\nWhen using multiple grids with same selector, only the last one will be updated on resize. If you have `n` grids, the last one will be updated `n` times.\r\n\r\nAs far as I understand problem is here : \r\n```\r\n for (var i=0;i\u003cgrids.length;i++) {\r\n var grid = grids[i], \r\n [...]\r\n makeGrid(grid, items, o); // \u003c- this call is ok\r\n var tempf = function() { makeGrid(grid, items, o); }; // \u003c- this call will not be ok as it is deferred. \r\n [...]\r\n }\r\n```\r\n\"grid\" in this function is not a copy of for loop's \"grid\", it IS the for loop's \"grid\". So when the event will be fired later on, grid will always have the current \"grid\" value of the for loop, which already has ended looping long ago =\u003e I will always be the last grid.\r\n\r\nI may give this a try, but I do not see an easy fix this evening.","author":{"url":"https://github.com/MonsieurLanza","@type":"Person","name":"MonsieurLanza"},"datePublished":"2016-11-22T21:19:02.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/4/JavaScript-flexImages/issues/4"}
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:afb80b9c-8b80-24ea-21d0-6e54b4c7cdae current-catalog-service-hash 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 request-id 9FA0:11D05E:1C14FB:27112B:698F38D0 html-safe-nonce 515f658b5cf8b3a06b58934d7cabec47010b40dd5bd598d8a04515c80b1afa74 visitor-payload eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RkEwOjExRDA1RToxQzE0RkI6MjcxMTJCOjY5OEYzOEQwIiwidmlzaXRvcl9pZCI6IjQ3MTU5MDk5Njg2NDA4MTczNjAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== visitor-hmac 7eaa5bc87b5515617a755dbd62fbf15e92aec7f98b027ef40466c9db1648981d hovercard-subject-tag issue:191126879 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/Pixabay/JavaScript-flexImages/4/issue_layout twitter:image https://opengraph.githubassets.com/d7644abc614afba112668161758283c04f23fe2c62e23fa6f7e82930d94ea436/Pixabay/JavaScript-flexImages/issues/4 twitter:card summary_large_image og:image https://opengraph.githubassets.com/d7644abc614afba112668161758283c04f23fe2c62e23fa6f7e82930d94ea436/Pixabay/JavaScript-flexImages/issues/4 og:image:alt Hello there, When using multiple grids with same selector, only the last one will be updated on resize. If you have n grids, the last one will be updated n times. As far as I understand problem is ... og:image:width 1200 og:image:height 600 og:site_name GitHub og:type object og:author:username MonsieurLanza hostname github.com expected-hostname github.com None 6102991c714c1a6a27d05fb4f96ea6ca87a6750b4f093b95cc57ed1b84b145a1 turbo-cache-control no-preview go-import github.com/Pixabay/JavaScript-flexImages git https://github.com/Pixabay/JavaScript-flexImages.git octolytics-dimension-user_id 7993082 octolytics-dimension-user_login Pixabay octolytics-dimension-repository_id 34940694 octolytics-dimension-repository_nwo Pixabay/JavaScript-flexImages octolytics-dimension-repository_public true octolytics-dimension-repository_is_fork false octolytics-dimension-repository_network_root_id 34940694 octolytics-dimension-repository_network_root_nwo Pixabay/JavaScript-flexImages 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 d6ba6f2bfbf6399a7c07495a912727369e95bfe8 ui-target full theme-color #1e2327 color-scheme light dark
URLs of crawlers that visited me.