title: parse data with event listener?
body: <p>Is there a way to parse data to a function from the event listener ?</p>
  
  <p>I have this:</p>
  
  <pre><code>div.addEventListener('mousedown',run(id),false);
  
  function run(e,id){
     console.log(id);
  }
  </code></pre>
  
  <p>Thing is it executes straight away. The other problem is - if i want to parse the variable <code>id</code>, and the <code>run</code> function recieves <code>e</code> for the event, how do you parse any thing else =/ It's a bit confusing to work out what order <code>e</code> is (before or after your designated variables that you want to parse)</p>
  
  <p>The current work around so far was to assign <code>id</code> to window so its basically a global... but i'm wondering if parsing via the event is possible at all ?</p>