title: set timeout to event listener function
body: <p>I have an event listener</p>
  
  <pre><code>elem.addEventListener('evt', fooFn(){alert("OK")});
  </code></pre>
  
  <p>I would like to have a timeout for this event listener. So let's say that if it doesn't receive any event called 'evt' in 3 seconds I would like to have a notification that it timed out.</p>
  
  <p>I tried with the <code>setTimeout</code> function but so far I don't manage to pass an internal variable of the <code>addEventListener</code> callback function (<code>fooFn</code>) to the <code>setTimeout</code> one.</p>
  
  <p>Any ideas on how I could make it?</p>