Skip to content
This repository was archived by the owner on Oct 26, 2021. It is now read-only.
This repository was archived by the owner on Oct 26, 2021. It is now read-only.

Can not call super? #6

Description

@retrocausal

I defined a class for a custom div element like so:

class myAwesomeDiv extends HTMLDivElement{

  constructor(){
    super();
    this.addEventListener('click',e=>this.toggleFav());
  }
 toggleFav(){}
}

and on using it as <awesome-div></awesome-div> ,

I am seeing this (line 82 in app.js is the call to super())
screenshot from 2016-09-09 21-05-29

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions