title: jQuery — hasClass in if statement not playing nicely
body: <p>I hope I'm not doing something silly here but I'm sure I understand this alright. Here's my code:</p>
  
  <pre><code>&lt;body class="someClass"&gt;Hi&lt;/body&gt;
  
  if($(body).hasClass("someClass")){
     alert("yo");
  }
  </code></pre>
  
  <p>For some reason it just doesn't work for some reason, what am I doing wrong?</p>
  
  <p>I've put a jsfiddle of it <a href="http://jsfiddle.net/uqRhZ/" rel="nofollow">here</a></p>