jQuery .removeClass() - doesn't remove the class
<p>I'm trying to remove a class, but it fails from some reason, can anyone share some ideas ?</p>

<p>This is the code:</p>

<pre><code>$(document).ready(function() {  
    if ($('.space-fill').height() &gt; 22) {
         $('.space-fill').addClass('space-full');
    }
    else{
         $('.space-fill').removeClass('space-full');
    }
});
</code></pre>
