{"action":"created","issue":{"url":"https://api.github.com/repos/mapbox/mapbox-gl-draw/issues/285","repository_url":"https://api.github.com/repos/mapbox/mapbox-gl-draw","labels_url":"https://api.github.com/repos/mapbox/mapbox-gl-draw/issues/285/labels{/name}","comments_url":"https://api.github.com/repos/mapbox/mapbox-gl-draw/issues/285/comments","events_url":"https://api.github.com/repos/mapbox/mapbox-gl-draw/issues/285/events","html_url":"https://github.com/mapbox/mapbox-gl-draw/issues/285","id":148383607,"number":285,"title":"Events not firing","user":{"login":"stackTom","id":13559181,"avatar_url":"https://avatars.githubusercontent.com/u/13559181?v=3","gravatar_id":"","url":"https://api.github.com/users/stackTom","html_url":"https://github.com/stackTom","followers_url":"https://api.github.com/users/stackTom/followers","following_url":"https://api.github.com/users/stackTom/following{/other_user}","gists_url":"https://api.github.com/users/stackTom/gists{/gist_id}","starred_url":"https://api.github.com/users/stackTom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stackTom/subscriptions","organizations_url":"https://api.github.com/users/stackTom/orgs","repos_url":"https://api.github.com/users/stackTom/repos","events_url":"https://api.github.com/users/stackTom/events{/privacy}","received_events_url":"https://api.github.com/users/stackTom/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-14T14:41:29Z","updated_at":"2016-04-18T04:45:55Z","closed_at":null,"body":"I can’t figure out how to respond to events. I have successfully added the controls and can draw polygons on the map. However, I can’t seem to understand how to respond to events.\r\n \r\nI am currently doing this:\r\n \r\nthat.map.once(\"draw.deleted\", e => {\r\n                console.log(\"hi\");\r\n});\r\n \r\nBut I whenever I make anything using Draw and delete it using the GUI controls, that function never gets called. If it helps, I called draw.delete(id) on my draw object and it says that delete is not a defined method on that object. Is this a bug, or am I doing something wrong. I am using the latest mapboxgl.\r\n"},"comment":{"url":"https://api.github.com/repos/mapbox/mapbox-gl-draw/issues/comments/211199139","html_url":"https://github.com/mapbox/mapbox-gl-draw/issues/285#issuecomment-211199139","issue_url":"https://api.github.com/repos/mapbox/mapbox-gl-draw/issues/285","id":211199139,"user":{"login":"stackTom","id":13559181,"avatar_url":"https://avatars.githubusercontent.com/u/13559181?v=3","gravatar_id":"","url":"https://api.github.com/users/stackTom","html_url":"https://github.com/stackTom","followers_url":"https://api.github.com/users/stackTom/followers","following_url":"https://api.github.com/users/stackTom/following{/other_user}","gists_url":"https://api.github.com/users/stackTom/gists{/gist_id}","starred_url":"https://api.github.com/users/stackTom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stackTom/subscriptions","organizations_url":"https://api.github.com/users/stackTom/orgs","repos_url":"https://api.github.com/users/stackTom/repos","events_url":"https://api.github.com/users/stackTom/events{/privacy}","received_events_url":"https://api.github.com/users/stackTom/received_events","type":"User","site_admin":false},"created_at":"2016-04-18T04:45:54Z","updated_at":"2016-04-18T04:45:54Z","body":"@mcwhittemore According to my package.json file, it is version 0.4.0."}}