{"action":"closed","issue":{"url":"https://api.github.com/repos/canjs/can-util/issues/51","repository_url":"https://api.github.com/repos/canjs/can-util","labels_url":"https://api.github.com/repos/canjs/can-util/issues/51/labels{/name}","comments_url":"https://api.github.com/repos/canjs/can-util/issues/51/comments","events_url":"https://api.github.com/repos/canjs/can-util/issues/51/events","html_url":"https://github.com/canjs/can-util/issues/51","id":176651042,"number":51,"title":"attr: Binding information","user":{"login":"matthewp","id":361671,"avatar_url":"https://avatars.githubusercontent.com/u/361671?v=3","gravatar_id":"","url":"https://api.github.com/users/matthewp","html_url":"https://github.com/matthewp","followers_url":"https://api.github.com/users/matthewp/followers","following_url":"https://api.github.com/users/matthewp/following{/other_user}","gists_url":"https://api.github.com/users/matthewp/gists{/gist_id}","starred_url":"https://api.github.com/users/matthewp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthewp/subscriptions","organizations_url":"https://api.github.com/users/matthewp/orgs","repos_url":"https://api.github.com/users/matthewp/repos","events_url":"https://api.github.com/users/matthewp/events{/privacy}","received_events_url":"https://api.github.com/users/matthewp/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-13T14:11:00Z","updated_at":"2016-09-13T18:12:37Z","closed_at":"2016-09-13T18:12:37Z","body":"I need an API to figure out how to bind to an element. My use-case is a binding to an `<option>`'s `selected` property. Since an option doesn't fire change events, I need to bind to the parent select.\r\n\r\nSomething like:\r\n\r\n```js\r\nvar info = attr.bindingInfo(select, prop);\r\n\r\ninfo.event; // \"change\"\r\ninfo.element; // <select>\r\n```\r\n\r\ncan-stache-bindings will use this information to bind to the correct element / event combination."}}
{"actor":{"display_login":"matthewp"}}