{"action":"created","issue":{"url":"https://api.github.com/repos/tim-evans/ember-pop-over/issues/22","repository_url":"https://api.github.com/repos/tim-evans/ember-pop-over","labels_url":"https://api.github.com/repos/tim-evans/ember-pop-over/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/tim-evans/ember-pop-over/issues/22/comments","events_url":"https://api.github.com/repos/tim-evans/ember-pop-over/issues/22/events","html_url":"https://github.com/tim-evans/ember-pop-over/pull/22","id":121666488,"number":22,"title":"Adds optional active class to target element","user":{"login":"jakemauer","id":361568,"avatar_url":"https://avatars.githubusercontent.com/u/361568?v=3","gravatar_id":"","url":"https://api.github.com/users/jakemauer","html_url":"https://github.com/jakemauer","followers_url":"https://api.github.com/users/jakemauer/followers","following_url":"https://api.github.com/users/jakemauer/following{/other_user}","gists_url":"https://api.github.com/users/jakemauer/gists{/gist_id}","starred_url":"https://api.github.com/users/jakemauer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jakemauer/subscriptions","organizations_url":"https://api.github.com/users/jakemauer/orgs","repos_url":"https://api.github.com/users/jakemauer/repos","events_url":"https://api.github.com/users/jakemauer/events{/privacy}","received_events_url":"https://api.github.com/users/jakemauer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2015-12-11T09:04:32Z","updated_at":"2016-08-10T23:53:23Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/tim-evans/ember-pop-over/pulls/22","html_url":"https://github.com/tim-evans/ember-pop-over/pull/22","diff_url":"https://github.com/tim-evans/ember-pop-over/pull/22.diff","patch_url":"https://github.com/tim-evans/ember-pop-over/pull/22.patch"},"body":"This adds rudimentary support for adding and removing an active class on the target element. My goal was to make it possible to use ember-pop-over for general purpose buttons and nav dropdowns where it's necessary to have an 'active' or 'pushed' state on the button itself. \r\n\r\nIf this was already possible and I missed it, or this code isn't up to snuff I'm all ears. \r\n\r\nThank you for all your work on this addon!\r\n\r\nExample: \r\n\r\n````\r\n<button id='my-button'>\r\n{{#my-popover for='my-button' activeClassName='active'}}\r\n  <ul>\r\n     <li>Item 1</li>\r\n    <li>Item 2</li>\r\n</ul>\r\n{{/my-popover}}\r\n````\r\nWhen you click on the button it should transform to `<button id='my-button' class='active'>` and 'active' will be removed when the popover hides.\r\n"},"comment":{"url":"https://api.github.com/repos/tim-evans/ember-pop-over/issues/comments/239039570","html_url":"https://github.com/tim-evans/ember-pop-over/pull/22#issuecomment-239039570","issue_url":"https://api.github.com/repos/tim-evans/ember-pop-over/issues/22","id":239039570,"user":{"login":"renatocarvalho","id":16294,"avatar_url":"https://avatars.githubusercontent.com/u/16294?v=3","gravatar_id":"","url":"https://api.github.com/users/renatocarvalho","html_url":"https://github.com/renatocarvalho","followers_url":"https://api.github.com/users/renatocarvalho/followers","following_url":"https://api.github.com/users/renatocarvalho/following{/other_user}","gists_url":"https://api.github.com/users/renatocarvalho/gists{/gist_id}","starred_url":"https://api.github.com/users/renatocarvalho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/renatocarvalho/subscriptions","organizations_url":"https://api.github.com/users/renatocarvalho/orgs","repos_url":"https://api.github.com/users/renatocarvalho/repos","events_url":"https://api.github.com/users/renatocarvalho/events{/privacy}","received_events_url":"https://api.github.com/users/renatocarvalho/received_events","type":"User","site_admin":false},"created_at":"2016-08-10T23:53:23Z","updated_at":"2016-08-10T23:53:23Z","body":"This would be very good to have and useful!"}}
{"actor":{"display_login":"renatocarvalho"}}