Slide-out panel if panel is 'out' - does not work
<p>I have a slideout panel which contains some cart details.</p>

<p>When the "add to basket" is hit, the panel slides out, this works by binding the add to basket button and the button for pulling the slide-out panel so that if "add to basket" is clicked, the trigger for the slide-out is "clicked" to.</p>

<p>For some reason this doesn't work, but I can't find any errors in the code:</p>

<pre><code>simpleCart.bind( "afterAdd" , function(){
    if(!$(settings.objSlidePanel).hasClass('out')){
        $(settings.objSlidePanel).click();
    }
});
</code></pre>

<p>Above should read as: if slide-out panel is NOT out, then continue with the .click function. (If is already out, method will not fire and thus stay open.)</p>

<p><a href="http://www.rubytuesdaycreative.co.uk/wristwarmers.html" rel="nofollow">Live example</a></p>

<p><a href="http://www.rubytuesdaycreative.co.uk/js/slideout.js" rel="nofollow">JS file for slide-out</a></p>
