{"action":"created","issue":{"url":"https://api.github.com/repos/shama/on-load/issues/2","repository_url":"https://api.github.com/repos/shama/on-load","labels_url":"https://api.github.com/repos/shama/on-load/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/shama/on-load/issues/2/comments","events_url":"https://api.github.com/repos/shama/on-load/issues/2/events","html_url":"https://github.com/shama/on-load/issues/2","id":161526881,"number":2,"title":"Transferrable Events","user":{"login":"shama","id":99604,"avatar_url":"https://avatars.githubusercontent.com/u/99604?v=3","gravatar_id":"","url":"https://api.github.com/users/shama","html_url":"https://github.com/shama","followers_url":"https://api.github.com/users/shama/followers","following_url":"https://api.github.com/users/shama/following{/other_user}","gists_url":"https://api.github.com/users/shama/gists{/gist_id}","starred_url":"https://api.github.com/users/shama/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shama/subscriptions","organizations_url":"https://api.github.com/users/shama/orgs","repos_url":"https://api.github.com/users/shama/repos","events_url":"https://api.github.com/users/shama/events{/privacy}","received_events_url":"https://api.github.com/users/shama/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-06-21T20:05:12Z","updated_at":"2016-06-21T23:13:12Z","closed_at":null,"body":"Currently it fires events based on if the [element registered matches](https://github.com/shama/on-load/blob/master/index.js#L13). Element references can get lost, fairly easily in complex DOM changes.\r\n\r\nSo instead, what if we generate a unique id, set with `el.dataset['on-load-id'] = uniqid` then match elements based on that id. This way, it doesn't matter what happens to the element reference, if it has a matching event id the event is triggered.\r\n\r\n/cc @yoshuawuyts @freeman-lab"},"comment":{"url":"https://api.github.com/repos/shama/on-load/issues/comments/227599839","html_url":"https://github.com/shama/on-load/issues/2#issuecomment-227599839","issue_url":"https://api.github.com/repos/shama/on-load/issues/2","id":227599839,"user":{"login":"yoshuawuyts","id":2467194,"avatar_url":"https://avatars.githubusercontent.com/u/2467194?v=3","gravatar_id":"","url":"https://api.github.com/users/yoshuawuyts","html_url":"https://github.com/yoshuawuyts","followers_url":"https://api.github.com/users/yoshuawuyts/followers","following_url":"https://api.github.com/users/yoshuawuyts/following{/other_user}","gists_url":"https://api.github.com/users/yoshuawuyts/gists{/gist_id}","starred_url":"https://api.github.com/users/yoshuawuyts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yoshuawuyts/subscriptions","organizations_url":"https://api.github.com/users/yoshuawuyts/orgs","repos_url":"https://api.github.com/users/yoshuawuyts/repos","events_url":"https://api.github.com/users/yoshuawuyts/events{/privacy}","received_events_url":"https://api.github.com/users/yoshuawuyts/received_events","type":"User","site_admin":false},"created_at":"2016-06-21T23:13:12Z","updated_at":"2016-06-21T23:13:12Z","body":"This sounds __perfect__ :heart:"}}
{"actor":{"display_login":"yoshuawuyts"}}