calling functions with or without braces scope question
<p>In jquery scripts i often see functions called like this:</p>

<pre><code>var somefunction = function(){
  $(this).doseomething()
}

$(someelement).click( somefunction );
</code></pre>

<p>Inside somefunction <code>this</code> seams to refer to the the clicked element. If the braces are used to call the function <code>this</code> does not refare to the clicked element.</p>

<p>Personally i don't like it. I like to see if something used in my code is a function or not. I prefere to pass <code>this</code> as argument. This is how i done it until now:</p>

<pre><code>var somefunction = function($clickedLink){
  $clickedLink.doseomething()
}

$(someelement).click(function(){ somefunction($(this)) });
</code></pre>

<p>Why can i access the refared element if i don't use the braces? And is it a good practice in general to call functions without braces? Does it has an influence on the performance?</p>
