{"action":"created","issue":{"url":"https://api.github.com/repos/kenwheeler/cash/issues/143","repository_url":"https://api.github.com/repos/kenwheeler/cash","labels_url":"https://api.github.com/repos/kenwheeler/cash/issues/143/labels{/name}","comments_url":"https://api.github.com/repos/kenwheeler/cash/issues/143/comments","events_url":"https://api.github.com/repos/kenwheeler/cash/issues/143/events","html_url":"https://github.com/kenwheeler/cash/issues/143","id":168038025,"number":143,"title":"Unbinding events with off throws error","user":{"login":"thasmo","id":184284,"avatar_url":"https://avatars.githubusercontent.com/u/184284?v=3","gravatar_id":"","url":"https://api.github.com/users/thasmo","html_url":"https://github.com/thasmo","followers_url":"https://api.github.com/users/thasmo/followers","following_url":"https://api.github.com/users/thasmo/following{/other_user}","gists_url":"https://api.github.com/users/thasmo/gists{/gist_id}","starred_url":"https://api.github.com/users/thasmo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thasmo/subscriptions","organizations_url":"https://api.github.com/users/thasmo/orgs","repos_url":"https://api.github.com/users/thasmo/repos","events_url":"https://api.github.com/users/thasmo/events{/privacy}","received_events_url":"https://api.github.com/users/thasmo/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/kenwheeler/cash/labels/bug","name":"bug","color":"e0354c"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/kenwheeler/cash/milestones/4","html_url":"https://github.com/kenwheeler/cash/milestones/1.3.5","labels_url":"https://api.github.com/repos/kenwheeler/cash/milestones/4/labels","id":1872890,"number":4,"title":"1.3.5","description":null,"creator":{"login":"shshaw","id":777155,"avatar_url":"https://avatars.githubusercontent.com/u/777155?v=3","gravatar_id":"","url":"https://api.github.com/users/shshaw","html_url":"https://github.com/shshaw","followers_url":"https://api.github.com/users/shshaw/followers","following_url":"https://api.github.com/users/shshaw/following{/other_user}","gists_url":"https://api.github.com/users/shshaw/gists{/gist_id}","starred_url":"https://api.github.com/users/shshaw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shshaw/subscriptions","organizations_url":"https://api.github.com/users/shshaw/orgs","repos_url":"https://api.github.com/users/shshaw/repos","events_url":"https://api.github.com/users/shshaw/events{/privacy}","received_events_url":"https://api.github.com/users/shshaw/received_events","type":"User","site_admin":false},"open_issues":12,"closed_issues":0,"state":"open","created_at":"2016-07-08T19:20:44Z","updated_at":"2016-07-28T14:50:29Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2016-07-28T08:13:54Z","updated_at":"2016-08-03T22:12:05Z","closed_at":null,"body":"When calling `element.off('click');` if `element.on('click', ...);` has not been called before, i.e. when the event is not set up yet, I get the error `TypeError: getData(...) is undefined`, seem to occur [here](https://github.com/kenwheeler/cash/blob/9f337ecba6503871c487af7e4627060f1e80e2af/src/events.js#L9)."},"comment":{"url":"https://api.github.com/repos/kenwheeler/cash/issues/comments/237391341","html_url":"https://github.com/kenwheeler/cash/issues/143#issuecomment-237391341","issue_url":"https://api.github.com/repos/kenwheeler/cash/issues/143","id":237391341,"user":{"login":"bmcminn","id":879984,"avatar_url":"https://avatars.githubusercontent.com/u/879984?v=3","gravatar_id":"","url":"https://api.github.com/users/bmcminn","html_url":"https://github.com/bmcminn","followers_url":"https://api.github.com/users/bmcminn/followers","following_url":"https://api.github.com/users/bmcminn/following{/other_user}","gists_url":"https://api.github.com/users/bmcminn/gists{/gist_id}","starred_url":"https://api.github.com/users/bmcminn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bmcminn/subscriptions","organizations_url":"https://api.github.com/users/bmcminn/orgs","repos_url":"https://api.github.com/users/bmcminn/repos","events_url":"https://api.github.com/users/bmcminn/events{/privacy}","received_events_url":"https://api.github.com/users/bmcminn/received_events","type":"User","site_admin":false},"created_at":"2016-08-03T22:12:05Z","updated_at":"2016-08-03T22:12:05Z","body":"@thasmo, I saw the same error in Firefox, but I was getting a slightly different error in Chrome and I'm thinking it has to do with the JS interpreter in V8.\r\n\r\n```\r\nFirefox:\r\nTypeError: getData(...) is undefined                                            cash.js:484:22\r\n\r\nChrome: \r\nUncaught TypeError: Cannot read property '.delegateEventsview8' of undefined    cash.js:484:50\r\n```\r\n\r\nHitting this issue with Backbone's delegated event handling in my views.\r\n\r\n-----\r\n\r\nSeems there isn't test coverage yet against running `.off()` on a bound event that hasn't been initialized per @thasmo's scenario: https://github.com/kenwheeler/cash/blob/master/test/test.js#L300-L310"}}
{"actor":{"display_login":"bmcminn"}}