Code only executes once but should continue
<p>The code below should prevent the popup from closing if you mouseover it, or the button, however, it only works once on reload and then stops working. </p>

<pre><code>$('.popover3-test').popover({
    placement:'bottom',
    template: $('.popover2'),
    trigger: 'manual',

    }).mouseenter(function(e) {
    $(this).popover('show');

    var t = null;

    $(".popover2, .popover3-test")
        .mouseleave(function() {
            t = setTimeout(function() {
                $('.popover2').hide();
            }, 1000); // Or however many milliseconds
        })
        .mouseenter(function() {
            if(t !== null)
                clearTimeout(t);
         });
    });
</code></pre>

<p>Demo: <a href="http://jsfiddle.net/MnpWV/1/" rel="nofollow">http://jsfiddle.net/MnpWV/1/</a></p>
