title: Enable/Disable a EventListener
body: <p>I'm building a Chess game on JS, and every pieces of the board are &quot;clickable&quot;, I added an <code>EventListener('click')</code> on them, I also added an <code>EventListener('click')</code> after that to select where should the piece go.</p>
  <p>But I need to know if there's any kind of <em>interrupter</em> related to a <code>EventListener</code>, in order to switch between an enabling an <code>EventListener</code> and disabling it. For example, when an certain variable is true I'd only have white pieces clickable and black ones otherwise.</p>