Při použití tohoto kódu s parametrem this
<button onclick="new myClass(this)">Click me</button>vrací v constructoru console.log(event) tohle
<button onclick="new myClass(this)">Click me</button>a při použití tohoto kódu s parametrem this
<button id="button-1">Click me</button>'+
document.getElementById('button-1').addEventListener('click', () => new myClass(this) );vrací v constructoru console.log(event) tohle
Window {parent: Window, opener: null, top: Window, length: 0, frames: Window, …}Co mám ještě prosím špatně? Děkuji