{"action":"opened","issue":{"url":"https://api.github.com/repos/svgdotjs/svg.js/issues/905","repository_url":"https://api.github.com/repos/svgdotjs/svg.js","labels_url":"https://api.github.com/repos/svgdotjs/svg.js/issues/905/labels{/name}","comments_url":"https://api.github.com/repos/svgdotjs/svg.js/issues/905/comments","events_url":"https://api.github.com/repos/svgdotjs/svg.js/issues/905/events","html_url":"https://github.com/svgdotjs/svg.js/issues/905","id":361417320,"node_id":"MDU6SXNzdWUzNjE0MTczMjA=","number":905,"title":"Exception removing event listener","user":{"login":"jshailes","id":229205,"node_id":"MDQ6VXNlcjIyOTIwNQ==","avatar_url":"https://avatars2.githubusercontent.com/u/229205?v=4","gravatar_id":"","url":"https://api.github.com/users/jshailes","html_url":"https://github.com/jshailes","followers_url":"https://api.github.com/users/jshailes/followers","following_url":"https://api.github.com/users/jshailes/following{/other_user}","gists_url":"https://api.github.com/users/jshailes/gists{/gist_id}","starred_url":"https://api.github.com/users/jshailes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jshailes/subscriptions","organizations_url":"https://api.github.com/users/jshailes/orgs","repos_url":"https://api.github.com/users/jshailes/repos","events_url":"https://api.github.com/users/jshailes/events{/privacy}","received_events_url":"https://api.github.com/users/jshailes/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-18T17:58:53Z","updated_at":"2018-09-18T17:58:53Z","closed_at":null,"author_association":"NONE","body":"I think I've followed the documentation when trying to remove a click event listener (http://svgjs.com/events/#element-click) however it results in an exception:\r\n\r\n`Uncaught TypeError: Cannot read property 'bind' of null\r\n    at Function.SVG.on (svg.js:3417)\r\n    at initializer.SVG.Element.(/impact/anonymous function) [as click] (https://cdnjs.cloudflare.com/ajax/libs/svg.js/2.6.3/svg.js:3404:9)`\r\n\r\nCode is as follows:\r\n\r\n`<html>\r\n\t<head>\r\n\t\t<script type=\"text/javascript\" src=\"https://cdnjs.cloudflare.com/ajax/libs/svg.js/2.6.3/svg.js\"></script>\r\n\t</head>\r\n\t<body>\r\n\t\t<div id=\"drawing\"></div>\r\n\r\n\t\t<script type=\"text/javascript\">\r\n\t\t\tvar draw = SVG('drawing').size(300, 130)\r\n\t\t\tvar rect = draw.rect(100, 100)\r\n\t\t\trect.click(null);\r\n\t\t</script>\r\n\t\t\r\n\t</body>\r\n</html>`"}}
{"actor":{"display_login":"jshailes"}}