{"action":"created","issue":{"url":"https://api.github.com/repos/webcomponents/custom-elements/issues/6","repository_url":"https://api.github.com/repos/webcomponents/custom-elements","labels_url":"https://api.github.com/repos/webcomponents/custom-elements/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/webcomponents/custom-elements/issues/6/comments","events_url":"https://api.github.com/repos/webcomponents/custom-elements/issues/6/events","html_url":"https://github.com/webcomponents/custom-elements/issues/6","id":176040381,"number":6,"title":"Can not call super?","user":{"login":"Nitin-Prabhakar","id":15086525,"avatar_url":"https://avatars.githubusercontent.com/u/15086525?v=3","gravatar_id":"","url":"https://api.github.com/users/Nitin-Prabhakar","html_url":"https://github.com/Nitin-Prabhakar","followers_url":"https://api.github.com/users/Nitin-Prabhakar/followers","following_url":"https://api.github.com/users/Nitin-Prabhakar/following{/other_user}","gists_url":"https://api.github.com/users/Nitin-Prabhakar/gists{/gist_id}","starred_url":"https://api.github.com/users/Nitin-Prabhakar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nitin-Prabhakar/subscriptions","organizations_url":"https://api.github.com/users/Nitin-Prabhakar/orgs","repos_url":"https://api.github.com/users/Nitin-Prabhakar/repos","events_url":"https://api.github.com/users/Nitin-Prabhakar/events{/privacy}","received_events_url":"https://api.github.com/users/Nitin-Prabhakar/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-09-09T15:39:38Z","updated_at":"2016-09-09T16:41:20Z","closed_at":"2016-09-09T16:29:59Z","body":"I defined a class for a custom div element like so:\r\n```js\r\nclass myAwesomeDiv extends HTMLDivElement{\r\n\r\n  constructor(){\r\n    super();\r\n    this.addEventListener('click',e=>this.toggleFav());\r\n  }\r\n toggleFav(){}\r\n}\r\n```\r\nand on using it as `<awesome-div></awesome-div>` , \r\n\r\nI am seeing this (line 82 in app.js is the call to `super()`)\r\n![screenshot from 2016-09-09 21-05-29](https://cloud.githubusercontent.com/assets/15086525/18392974/6b4974b0-76d1-11e6-9e8a-58fad94d80b3.png)\r\n"},"comment":{"url":"https://api.github.com/repos/webcomponents/custom-elements/issues/comments/245968827","html_url":"https://github.com/webcomponents/custom-elements/issues/6#issuecomment-245968827","issue_url":"https://api.github.com/repos/webcomponents/custom-elements/issues/6","id":245968827,"user":{"login":"justinfagnani","id":522948,"avatar_url":"https://avatars.githubusercontent.com/u/522948?v=3","gravatar_id":"","url":"https://api.github.com/users/justinfagnani","html_url":"https://github.com/justinfagnani","followers_url":"https://api.github.com/users/justinfagnani/followers","following_url":"https://api.github.com/users/justinfagnani/following{/other_user}","gists_url":"https://api.github.com/users/justinfagnani/gists{/gist_id}","starred_url":"https://api.github.com/users/justinfagnani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justinfagnani/subscriptions","organizations_url":"https://api.github.com/users/justinfagnani/orgs","repos_url":"https://api.github.com/users/justinfagnani/repos","events_url":"https://api.github.com/users/justinfagnani/events{/privacy}","received_events_url":"https://api.github.com/users/justinfagnani/received_events","type":"User","site_admin":false},"created_at":"2016-09-09T16:41:20Z","updated_at":"2016-09-09T16:41:20Z","body":"Only `HTMLElement`"}}
{"actor":{"display_login":"justinfagnani"}}