Tristan Caron
02/28/2017, 2:01 PMkotlin
window.customElements.define("fancy-button", ::FancyButton, object : ElementDefinitionOptions {
override var extends: String? = "button"
})
It's not really doing what I want. The JavaScript version take a reference of FancyButton. I think the define function will do new FancyButton(). The problem here, the compiled code is not working because it's trying to new (function () {return new FancyButton()})