jQuery obscurity
<p>This is kind of funky. But take a look at the code snippet below :</p>

<pre><code>$('.classname').bind('click', somefunction);

function somefunction() {
  console.log($(this)); // **displays[&lt;div&gt;,context&lt;div&gt;]**
}
</code></pre>

<p>And if I tweak the above to:</p>

<pre><code>$('.classname').bind('click', function(){ somefunction(); });

function somefunction(){
  console.log($(this)); // **displays [Window]**
}
</code></pre>

<p>I am not quite sure why 'this' assumes two different values depending on how the function is being called back. The thing is, I do need this to be ,context and the function to be called like </p>

<pre><code>function(event){ somefunction(event); }
</code></pre>

<p>because I need the event. But not quite sure what's up here. </p>

<p>Any leads, people?</p>
