How to make a event wait until jQuery flip effect finish?
<p>I got a problem, I have this code:</p>

<pre><code>$(document).ready(function(){
    /* The following code is executed once the DOM is loaded */

    $('.clsks').mouseenter(function() {

        var ob = $(this);
        var dar = $(this).attr('ids');
        var obj1 = $('#sponsorFlip'+dar);
        var obj2 = $('#sponsorData'+dar);

        obj1.flip({
                direction:'lr',
                speed: 350,
                onBefore: function(){
                    // Insert the contents of the .sponsorData div (hidden from view with display:none)
                    // into the clicked .sponsorFlip div before the flipping animation starts:
                    obj1.html(obj2.html());

                }
            });

            // Setting the flag:
        //obj1.data('flipped',true);

        }).mouseleave(function() { var dar = $(this).attr('ids');
        var obj1 = $('#sponsorFlip'+dar); obj1.revertFlip(); });

});
</code></pre>

<p>I need make the event mouseenter wait until this jQuery flip finish cuz sometimes if someone mouseenter fast the mouseleave fails cuz 'obj1.html(obj2.html());' over it.</p>

<p>but I only need to make the mouseenter event wait the jQuery flip finish.</p>
