title: triggering the same function, from 2 different click events, with and without parameters
body: <p>I have a function <code>myFunc</code> that can be triggered 2 different ways: by clicking div1 or div2. </p>
  
  <ul>
  <li>If the click came from div2, I'd like to pass some parameters to the function at the time of the call. </li>
  <li>Also, in both cases, I need a reference to the item that was clicked: <code>$(this)</code>.</li>
  </ul>
  
  <p>I've tried this code, but the second version (where I'm passing the parameters) gets triggered automatically even without me clicking anything. What am I doing wrong, and do I need to pass <code>this</code> as a parameter in both cases?</p>
  
  <pre><code>$('#div1').live('click', myFunc);
  $('#div2').live('click', myFunc('param1 value', 'param2 value'));
  
  function myFunc(param1, param2){
    console.log('inside myFunc');
  }
  </code></pre>