{"action":"closed","issue":{"url":"https://api.github.com/repos/stuartjnelson/badger-accordion/issues/14","repository_url":"https://api.github.com/repos/stuartjnelson/badger-accordion","labels_url":"https://api.github.com/repos/stuartjnelson/badger-accordion/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/stuartjnelson/badger-accordion/issues/14/comments","events_url":"https://api.github.com/repos/stuartjnelson/badger-accordion/issues/14/events","html_url":"https://github.com/stuartjnelson/badger-accordion/issues/14","id":344179896,"node_id":"MDU6SXNzdWUzNDQxNzk4OTY=","number":14,"title":"openAll(), closeAll() and headerIndex","user":{"login":"plweil","id":1033771,"node_id":"MDQ6VXNlcjEwMzM3NzE=","avatar_url":"https://avatars3.githubusercontent.com/u/1033771?v=4","gravatar_id":"","url":"https://api.github.com/users/plweil","html_url":"https://github.com/plweil","followers_url":"https://api.github.com/users/plweil/followers","following_url":"https://api.github.com/users/plweil/following{/other_user}","gists_url":"https://api.github.com/users/plweil/gists{/gist_id}","starred_url":"https://api.github.com/users/plweil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/plweil/subscriptions","organizations_url":"https://api.github.com/users/plweil/orgs","repos_url":"https://api.github.com/users/plweil/repos","events_url":"https://api.github.com/users/plweil/events{/privacy}","received_events_url":"https://api.github.com/users/plweil/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-07-24T19:52:59Z","updated_at":"2018-11-28T20:22:12Z","closed_at":"2018-11-28T20:22:12Z","author_association":"NONE","body":"Unless I'm mistaken, I think there's a bug with the openAll() and closeAll() methods. \r\n\r\nTaking openAll() as an example:\r\n \r\n      this.headers.forEach(function (header) {\r\n       _this5.togglePanel('open', header);\r\n      });\r\n\r\n\r\nBut togglePanel() is expecting the header **index** , rather than the object, as the second parameter.\r\n\r\nThis seems to work:\r\n\r\n      this.headers.forEach(function (header, i) {\r\n        _this5.togglePanel('open', i);\r\n      });\r\n"}}
{"actor":{"display_login":"stuartjnelson"}}