Title: Default option overwritten when mutliple JSONTable on same page · Issue #4 · 6eDesign/JSONTable · GitHub
Open Graph Title: Default option overwritten when mutliple JSONTable on same page · Issue #4 · 6eDesign/JSONTable
X Title: Default option overwritten when mutliple JSONTable on same page · Issue #4 · 6eDesign/JSONTable
Description: Hi, I was 'playing with JSONTable' with 2 JSONTable on the same page but there was problems on the second table ( with the version you give me access to) After tracing, I've seen that you are overwriting the defaultopts array. I bypassed...
Open Graph Description: Hi, I was 'playing with JSONTable' with 2 JSONTable on the same page but there was problems on the second table ( with the version you give me access to) After tracing, I've seen that you are overw...
X Description: Hi, I was 'playing with JSONTable' with 2 JSONTable on the same page but there was problems on the second table ( with the version you give me access to) After tracing, I've seen that y...
Opengraph URL: https://github.com/6eDesign/JSONTable/issues/4
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Default option overwritten when mutliple JSONTable on same page","articleBody":" Hi,\n\n I was 'playing with JSONTable' with 2 JSONTable on the same page but there was problems on the second table ( with the version you give me access to)\n\n After tracing, I've seen that you are overwriting the defaultopts array.\n I bypassed the problem by copying the array first. See code under.\n\n```\nvar table = function(id,json,opts) { \n ++tableCount;\n var targetdiv, columns, settings, table, thead, tbody, columnsJSON, tableAttrs; \n columnsJSON = []; \n targetdiv = document.getElementById(id); \n\n var newdefaultopts = JSON.parse( JSON.stringify( defaultopts ) );\n settings = extend(newdefaultopts,opts)\n\n // send the whole array only if(deepScan):\n columns = (settings.deepScan) ? getColumns(json, settings) : getColumns([json[0]], settings); \n```\n\n....\n\n Thanks for your help last time.\n","author":{"url":"https://github.com/ydakilux","@type":"Person","name":"ydakilux"},"datePublished":"2014-05-23T12:38:02.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/4/JSONTable/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:489e7e76-7a89-d780-0ca4-3c7bd7a5ad60 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9F1A:948FF:1265B34:17B9B9F:697F9987 |
| html-safe-nonce | aee735a53482a389d8439b34d7f41ea644fdb631163667e5bff7e5be039a368e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RjFBOjk0OEZGOjEyNjVCMzQ6MTdCOUI5Rjo2OTdGOTk4NyIsInZpc2l0b3JfaWQiOiI3NzEyMDI3MDMwNjA2Mjg5Mjg3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 02c9470581b6c3c29569f305a5f296f5ecc5dfa7640da94746b8167f4f6651bf |
| hovercard-subject-tag | issue:34170894 |
| 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/6eDesign/JSONTable/4/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2ce1bf4be85ef69eadfcafa6975059455d2d737aace17f0d5f699a47ce8c1546/6eDesign/JSONTable/issues/4 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2ce1bf4be85ef69eadfcafa6975059455d2d737aace17f0d5f699a47ce8c1546/6eDesign/JSONTable/issues/4 |
| og:image:alt | Hi, I was 'playing with JSONTable' with 2 JSONTable on the same page but there was problems on the second table ( with the version you give me access to) After tracing, I've seen that you are overw... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ydakilux |
| hostname | github.com |
| expected-hostname | github.com |
| None | 60279d4097367e16897439d16d6bbe4180663db828c666eeed2656988ffe59f6 |
| turbo-cache-control | no-preview |
| go-import | github.com/6eDesign/JSONTable git https://github.com/6eDesign/JSONTable.git |
| octolytics-dimension-user_id | 2213673 |
| octolytics-dimension-user_login | 6eDesign |
| octolytics-dimension-repository_id | 12100286 |
| octolytics-dimension-repository_nwo | 6eDesign/JSONTable |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 12100286 |
| octolytics-dimension-repository_network_root_nwo | 6eDesign/JSONTable |
| 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 | 7c85641c598ad130c74f7bcc27f58575cac69551 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width