Closed rochapablo closed 3 years ago
Doesn't work
class App { element; constructor(element) { this.element = element; } getByClass(value) { return this.element.parentNode.getElementsByClassName(value)[0]; } }
Work
function App (element) { this.element = element; }; App.prototype.getByClass = function (value) { return this.element.parentNode.getElementsByClassName(value)[0]; };
This is the same as #235 I hope to tackle this in the next few weeks when I have some free time. pRs welcome in the meantime
Closing this as its basically #235, which I'm working on a fix or now
Doesn't work
Work