Changing strategy. I'm not trying to extends `HTM...
# javascript
t
Changing strategy. I'm not trying to extends
HTMLButtonElement
but just
HTMLElement
. In this case, no need to add the parameter
extends
to the define method. I get another error. It's not illegal anymore it's
Copy code
Uncaught TypeError: Failed to construct 'HTMLElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function.
    at new FancyButton (dashlin-gui.js:16)
and I get the same error in babel when I target es5. Babel doesn't support it yet 🙂