title: $(this) is selecting window object instead of clicked element jquery
body: <p>I have a really strange issue. I simply want to select a clicked element. I did this a lot of times and it always worked but this time, the jQuery $(this) selector doesn't select the clicked element, it selects the window object. Please let me know, if you have an idea, what could be the reason for this. I am using jQuery 2.1.4 and Twitters Bootstrap 3.3.5</p>
  
  <p>HTML:</p>
  
  <pre><code>&lt;a class="btn btn-danger btn-xs delete-file"&gt;&lt;i class="fa fa-trash" aria-hidden="true"&gt;&lt;/i&gt; Löschen&lt;/a&gt;
  </code></pre>
  
  <p>jQuery:</p>
  
  <pre><code>$(document).ready( () =&gt; {
     $('.delete-file').on('click', () =&gt; {
        let element = $(this);
        console.log(element);
      });
  });
  </code></pre>
  
  <p>Console-Output:</p>
  
  <pre><code>n.fn.init [Window]
  </code></pre>
  
  <p>instead of:</p>
  
  <pre><code>n.fn.init [a.btn.btn-danger.btn-xs.delete-file]
  </code></pre>
  
  <p>Thank you in advance!</p>