title: $eventTarget.is($(this)) not working
body: <p>I made a sample accordion. If a tab is being clicked, its siblings are supposed to be closing; in other words, only one tab must be opened if the event target is that current tab (the tabs are the <code>&lt;header&gt;</code>s). What I did in my code is test if the event target is the current tab, which is <code>$(this)</code>, but it didn't work, nothing changed. How can I fix this?</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>var $header = $('#accordions').find('header');
  
  $header.on('click', function(e) {
    var $eventTarget = $(e.target);
  
    if (!$eventTarget.is($(this))) {
      $(this).siblings('.slide').slideUp(300);
    } else {
      $(this).siblings('.slide').slideToggle(300);
    }
  });</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;section id="accordions"&gt;
    &lt;div class="accordion"&gt;
      &lt;header&gt;Slide 1&lt;/header&gt;
      &lt;div class="slide"&gt;
        Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
      &lt;/div&gt;
    &lt;/div&gt;
    &lt;div class="accordion"&gt;
      &lt;header&gt;Slide 2&lt;/header&gt;
      &lt;div class="slide"&gt;
        Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
      &lt;/div&gt;
    &lt;/div&gt;
    &lt;div class="accordion"&gt;
      &lt;header&gt;Slide 3&lt;/header&gt;
      &lt;div class="slide"&gt;
        Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
      &lt;/div&gt;
    &lt;/div&gt;
    &lt;div class="accordion"&gt;
      &lt;header&gt;Slide 4&lt;/header&gt;
      &lt;div class="slide"&gt;
        Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/section&gt;</code></pre>
  </div>
  </div>
  </p>