title: How to pass an object reference to a function with jQuery?
body: <p>I have several links which all use a similar function, so I want to call the function and pass it attributes from the object that made the call. How do I do this? </p>
  
  <p>This is my code:</p>
  
  <pre><code>$('.flash').click(function(){
      getDimensions($(this));
      swfobject.embedSWF(fileRef, "myContent", fileWidth, fileHeight, "9.0.0");
  });
  
  function getDimensions(linkRef){
      fileHeight = $(linkRef).attr('data-height');
      fileWidth = $(linkRef).attr('data-width');
  }
  </code></pre>
  
  <p>Am I just referencing <code>$(this)</code> improperly?</p>