how to pass a parameter to a function if the event is also required as a param?
<p>I have 2 functions <code>addData()</code> and <code>diplayInfoBox(e)</code>, inside addData I have a click handler, I need to get some event details when clicked so the event is required as a parameter of <code>displayInfoBox</code>, I also need to pass another piece of information into <code>displayInfoBox</code> but I'm unsure how to do this with the event being there. If I do <code>displayInfoBox(e, pin)</code> this doesn't work. Can anyone suggest what I need to do to resolve this? </p>

<p><strong>JSFiddle</strong>
<a href="http://jsfiddle.net/kyllle/upej8/7/" rel="nofollow">http://jsfiddle.net/kyllle/upej8/7/</a></p>

<p><strong>JS</strong></p>

<pre><code>addData: function() {
  //code

  //click handler
  Microsoft.Maps.Events.addHandler(pin, 'click', instance.displayInfoBox); //need to be able to pass variable pin to displayInfoBox
},

displayInfoBox: function(e) { //need to accept additional param for pin

}
</code></pre>
