{"action":"created","issue":{"url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/1788","labels_url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/1788/labels{/name}","comments_url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/1788/comments","events_url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/1788/events","html_url":"https://github.com/mapbox/mapbox-gl-js/issues/1788","id":120060059,"number":1788,"title":"multiple events for same function","user":{"login":"musicformellons","id":10334123,"avatar_url":"https://avatars.githubusercontent.com/u/10334123?v=3","gravatar_id":"","url":"https://api.github.com/users/musicformellons","html_url":"https://github.com/musicformellons","followers_url":"https://api.github.com/users/musicformellons/followers","following_url":"https://api.github.com/users/musicformellons/following{/other_user}","gists_url":"https://api.github.com/users/musicformellons/gists{/gist_id}","starred_url":"https://api.github.com/users/musicformellons/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/musicformellons/subscriptions","organizations_url":"https://api.github.com/users/musicformellons/orgs","repos_url":"https://api.github.com/users/musicformellons/repos","events_url":"https://api.github.com/users/musicformellons/events{/privacy}","received_events_url":"https://api.github.com/users/musicformellons/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-12-02T23:32:43Z","updated_at":"2015-12-03T14:30:38Z","closed_at":"2015-12-03T14:30:37Z","body":"In jQuery you can do:\r\n```\r\nmap.on('load moveend', dosomething);\r\n```\r\nThis does not work in Mapbox gl js.\r\n\r\nThis seems to work:\r\n```\r\nmap.on('load', dosomething);\r\nmap.on('moveend', dosomething);\r\n```\r\nMaybe support jQuery style?\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/comments/161656117","html_url":"https://github.com/mapbox/mapbox-gl-js/issues/1788#issuecomment-161656117","issue_url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/1788","id":161656117,"user":{"login":"tmcw","id":32314,"avatar_url":"https://avatars.githubusercontent.com/u/32314?v=3","gravatar_id":"","url":"https://api.github.com/users/tmcw","html_url":"https://github.com/tmcw","followers_url":"https://api.github.com/users/tmcw/followers","following_url":"https://api.github.com/users/tmcw/following{/other_user}","gists_url":"https://api.github.com/users/tmcw/gists{/gist_id}","starred_url":"https://api.github.com/users/tmcw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmcw/subscriptions","organizations_url":"https://api.github.com/users/tmcw/orgs","repos_url":"https://api.github.com/users/tmcw/repos","events_url":"https://api.github.com/users/tmcw/events{/privacy}","received_events_url":"https://api.github.com/users/tmcw/received_events","type":"User","site_admin":false},"created_at":"2015-12-03T14:30:37Z","updated_at":"2015-12-03T14:30:37Z","body":"Agreed: no sugar here, chaining is the way to go for brevity."}}