click function triggering function before event finishes
<p>I've built a dropdown menu that uses a slideUp event if the menu itself or anywhere in the body is clicked:</p>

<pre><code>$('html, .currentPage').click(function() { 
    $('.currentMenu').slideUp('fast', function() { myFunction(); });
});
</code></pre>

<p>I also have a function inside the slideUp event callback. </p>

<p>However, my problem is that the function is being called on html or .currentPage click whether the slideUp event has occurred or not.</p>

<p>How can I make it so the function(); <strong>ONLY</strong> happens if the slideUp event runs?</p>
