Re: (windows).mouseleave(function() {
Posted: Mon Aug 17, 2015 12:49 am
You could probably reuse the function instead of defining it twice:
Code: Select all
function blockEvent(e) {e.stopImmediatePropagation();e.stopPropagation();}; window.addEventListener("mouseleave", blockEvent, false); window.addEventListener("mouseout", blockEvent, false);