Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var cartTimer;
- $('.woo-menu-cart').hover(function(e) {
- clearTimeout(this.cartTimer);
- $('.cart-items').show();
- console.log('hovered');
- }, function(e) {
- this.cartTimer = setTimeout("function() { $('.cart-items').hide() }", 2000);
- console.log('out, ' + this.cartTimer);
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement