title: `this` not properly bound
body: <pre><code>deleteSong.onclick = (this)=&gt;{ this.removeWidget(this) }
  </code></pre>
  <p>What i want here is the &quot;this&quot; param in <code>removeWidget(this)</code> to be binded to the HTMLElement &quot;this&quot; not my class &quot;this&quot;</p>
  <p>Class:</p>
  <pre><code>class Collection{
  
  createElements(){
      let deleteSong = document.createElement('button');
      deleteSong.className += 'delete-song';
      deleteSong.setAttribute('type', 'button');
      deleteSong.onclick = (this)=&gt;{ this.removeWidget(this) }
      deleteSong.innerHTML = '&amp;#10005;';
   }
  }
  </code></pre>
  <p>For more clarity i'm trying to achieve something like</p>
  <p><code>&lt;button onclick=&quot;myFunction(this)&quot;&gt;Click me&lt;/button&gt;</code>.
  Where the 'this' will return the HTMLElement object</p>