title: How to pass ID parameter to context menu
body: <p>Please help me with this.</p>
  
  <p>I am creating a right click context menu on a map marker.</p>
  
  <p>See here - <a href="http://jsfiddle.net/WEZVX/2/" rel="nofollow">http://jsfiddle.net/WEZVX/2/</a></p>
  
  <p>I need to pass the markers 'id' parameter to the items function.</p>
  
  <p>see lines</p>
  
  <pre><code>// add menu item
  menu.add('Request Update', 'update',
  function(){
      console.log(id);
      menu.close();
  }); 
  </code></pre>
  
  <p>do i need to wrap this in another function?</p>