{"action":"created","issue":{"url":"https://api.github.com/repos/select2/select2/issues/3495","labels_url":"https://api.github.com/repos/select2/select2/issues/3495/labels{/name}","comments_url":"https://api.github.com/repos/select2/select2/issues/3495/comments","events_url":"https://api.github.com/repos/select2/select2/issues/3495/events","html_url":"https://github.com/select2/select2/pull/3495","id":89251915,"number":3495,"title":"Apply select2('option') calls on all elements","user":{"login":"pquentin","id":42327,"avatar_url":"https://avatars.githubusercontent.com/u/42327?v=3","gravatar_id":"","url":"https://api.github.com/users/pquentin","html_url":"https://github.com/pquentin","followers_url":"https://api.github.com/users/pquentin/followers","following_url":"https://api.github.com/users/pquentin/following{/other_user}","gists_url":"https://api.github.com/users/pquentin/gists{/gist_id}","starred_url":"https://api.github.com/users/pquentin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pquentin/subscriptions","organizations_url":"https://api.github.com/users/pquentin/orgs","repos_url":"https://api.github.com/users/pquentin/repos","events_url":"https://api.github.com/users/pquentin/events{/privacy}","received_events_url":"https://api.github.com/users/pquentin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-06-18T10:05:24Z","updated_at":"2015-06-21T00:12:21Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/select2/select2/pulls/3495","html_url":"https://github.com/select2/select2/pull/3495","diff_url":"https://github.com/select2/select2/pull/3495.diff","patch_url":"https://github.com/select2/select2/pull/3495.patch"},"body":"Fixes #3413 \r\n\r\nThe idea of the patch is simple: as with `'object'` options, we iterate over `this`.\r\n\r\nI don't know how to test destroy(), so... I did not test it. I might give it a try with some guidance. Should dist/ changes be part of the pull request? This is not mentioned in CONTRIBUTING.md."},"comment":{"url":"https://api.github.com/repos/select2/select2/issues/comments/113844063","html_url":"https://github.com/select2/select2/pull/3495#issuecomment-113844063","issue_url":"https://api.github.com/repos/select2/select2/issues/3495","id":113844063,"user":{"login":"kevin-brown","id":1991850,"avatar_url":"https://avatars.githubusercontent.com/u/1991850?v=3","gravatar_id":"","url":"https://api.github.com/users/kevin-brown","html_url":"https://github.com/kevin-brown","followers_url":"https://api.github.com/users/kevin-brown/followers","following_url":"https://api.github.com/users/kevin-brown/following{/other_user}","gists_url":"https://api.github.com/users/kevin-brown/gists{/gist_id}","starred_url":"https://api.github.com/users/kevin-brown/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevin-brown/subscriptions","organizations_url":"https://api.github.com/users/kevin-brown/orgs","repos_url":"https://api.github.com/users/kevin-brown/repos","events_url":"https://api.github.com/users/kevin-brown/events{/privacy}","received_events_url":"https://api.github.com/users/kevin-brown/received_events","type":"User","site_admin":false},"created_at":"2015-06-21T00:12:21Z","updated_at":"2015-06-21T00:12:21Z","body":"> However, 'destroy' seems to be the only documented one.\r\n\r\n`select2('open')`, `select2('close')`, and `select2('destroy')` are [officially supported and documented](https://select2.github.io/examples.html#programmatic).\r\n\r\n`select2('val')` (deprecated) and `select2('data')` (partially deprecated) are also on the list, but those are not documented. Interestingly, [they are partially tested](https://github.com/select2/select2/blob/master/tests/integration/select2-methods.js)."}}