From 3ec791559c0b5f60dbf8b6a06b18f172a8a0c9aa Mon Sep 17 00:00:00 2001 From: Nicolas Coden Date: Mon, 30 Jul 2018 22:27:21 +0200 Subject: [PATCH] docs: improve doc in "ignoreMousedisappear()" --- js/foundation.core.utils.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/foundation.core.utils.js b/js/foundation.core.utils.js index d9c37d0a1..3bb5d5385 100644 --- a/js/foundation.core.utils.js +++ b/js/foundation.core.utils.js @@ -117,7 +117,7 @@ function ignoreMousedisappear(handler, { ignoreLeaveWindow = false, ignoreReappe return callback(); } - // Otherwise, check if the mouse actually left the window + // Otherwise, check if the mouse actually left the window. // In firefox if the user switched between windows, the window sill have the focus by the time // the event is triggered. We have to debounce the event to test this case. setTimeout(function leaveEventDebouncer() { @@ -125,7 +125,7 @@ function ignoreMousedisappear(handler, { ignoreLeaveWindow = false, ignoreReappe return callback(); } - // Otherwise, wait for the mouse to reenter into the element it left + // Otherwise, wait for the mouse to reeapear outside of the element, if (!ignoreReappear) { $(document).one('mouseenter', function reenterEventHandler(eReenter) { if (!$(eLeave.currentTarget).has(eReenter.target).length) { -- 2.47.3