Why doesn't my Javascript switch statement work?
<p>I have a switch statement and I must be overlooking something, because I don't see why it wouldn't work.</p>

<pre><code>$('.handles a').click(function() {
    var li = $(this).parent();

    switch ($(li).data('handle')) {
    case 'minimize':
        $('.window', li).hide();
        break;
    }

    return false;
});
</code></pre>

<p>Also setup a fiddle @ <a href="http://jsfiddle.net/9aHvx/4/" rel="nofollow">http://jsfiddle.net/9aHvx/4/</a> (click on Min)</p>

<p>It should hide the <code>.window</code> div, but it doesn't :(</p>
