how to remove a method with a callback or otherwise
<p>I have the following code that animates an object with a delay of 800 ms:</p>

<pre><code>$('#navMenu').mousemove(function (e) {
        thisX = e.pageX

        if (thisX &gt;= 1625) {
            $('#prbBtnHolder').animate({ left: '-=150' }, 300).delay(800);
        }
});
</code></pre>

<p>If the <code>#prbBtnHolder</code> has a certain <code>css left</code> property i want to be able to remove the <code>delay()</code>method and stop the animation. How do i do this? This is what I've tried so far:</p>

<pre><code>//...
$('#prbBtnHolder').animate({ left: '-=150' }, 300).delay(800);
if ($('#prbBtnHolder').css('left') &lt; -100) {
     $(this).animate({left: '-=0px'});
}
</code></pre>

<p>But this does not remove the <code>delay</code> method nor does it achieve the desired effect. Any other ideas?</p>
