Do not trigger on elements that are about to leave the page (jQuery only).