{"action":"created","issue":{"url":"https://api.github.com/repos/mootools/mootools-core/issues/2771","repository_url":"https://api.github.com/repos/mootools/mootools-core","labels_url":"https://api.github.com/repos/mootools/mootools-core/issues/2771/labels{/name}","comments_url":"https://api.github.com/repos/mootools/mootools-core/issues/2771/comments","events_url":"https://api.github.com/repos/mootools/mootools-core/issues/2771/events","html_url":"https://github.com/mootools/mootools-core/issues/2771","id":178114859,"number":2771,"title":"Events confusion","user":{"login":"NaridaL","id":10828874,"avatar_url":"https://avatars.githubusercontent.com/u/10828874?v=3","gravatar_id":"","url":"https://api.github.com/users/NaridaL","html_url":"https://github.com/NaridaL","followers_url":"https://api.github.com/users/NaridaL/followers","following_url":"https://api.github.com/users/NaridaL/following{/other_user}","gists_url":"https://api.github.com/users/NaridaL/gists{/gist_id}","starred_url":"https://api.github.com/users/NaridaL/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NaridaL/subscriptions","organizations_url":"https://api.github.com/users/NaridaL/orgs","repos_url":"https://api.github.com/users/NaridaL/repos","events_url":"https://api.github.com/users/NaridaL/events{/privacy}","received_events_url":"https://api.github.com/users/NaridaL/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-20T16:50:07Z","updated_at":"2016-09-20T16:56:26Z","closed_at":null,"body":"Maybe I'm missing something, but it seems the event handling documentation could be clearer. The documentation for http://mootools.net/core/docs/1.6.0/Element/Element.Event doesn't specify the expected signature of the event handler function (fn in myElement.addEvent(type, fn);)\r\n\r\nThe assumption that it's the same as the standard addEventListener is wrong, because it gets passed a Mootools Event (whose documentation is broken: http://mootools.net/core/docs/1.6.0/Element/Element.Event links to http://mootools.net/core/docs/1.6.0/Types/Event#Event:stop which 404s).\r\n\r\nThe Mootools Event isn't compatible with the standard one, for example shiftKey is renamed to shift, although it's not really clear why. cf. https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/shiftKey and https://w3c.github.io/uievents/#dom-keyboardevent-shiftkey"},"comment":{"url":"https://api.github.com/repos/mootools/mootools-core/issues/comments/248363251","html_url":"https://github.com/mootools/mootools-core/issues/2771#issuecomment-248363251","issue_url":"https://api.github.com/repos/mootools/mootools-core/issues/2771","id":248363251,"user":{"login":"DimitarChristoff","id":119500,"avatar_url":"https://avatars.githubusercontent.com/u/119500?v=3","gravatar_id":"","url":"https://api.github.com/users/DimitarChristoff","html_url":"https://github.com/DimitarChristoff","followers_url":"https://api.github.com/users/DimitarChristoff/followers","following_url":"https://api.github.com/users/DimitarChristoff/following{/other_user}","gists_url":"https://api.github.com/users/DimitarChristoff/gists{/gist_id}","starred_url":"https://api.github.com/users/DimitarChristoff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DimitarChristoff/subscriptions","organizations_url":"https://api.github.com/users/DimitarChristoff/orgs","repos_url":"https://api.github.com/users/DimitarChristoff/repos","events_url":"https://api.github.com/users/DimitarChristoff/events{/privacy}","received_events_url":"https://api.github.com/users/DimitarChristoff/received_events","type":"User","site_admin":false},"created_at":"2016-09-20T16:56:26Z","updated_at":"2016-09-20T16:56:26Z","body":"they are normalised events. see http://mootools.net/core/docs/1.6.0/Types/DOMEvent"}}
{"actor":{"display_login":"DimitarChristoff"}}