From: Nicolas Coden Date: Mon, 30 Jul 2018 20:27:21 +0000 (+0200) Subject: docs: improve doc in "ignoreMousedisappear()" X-Git-Tag: v6.6.0~3^2~95^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3ec791559;p=thirdparty%2Ffoundation%2Ffoundation-sites.git docs: improve doc in "ignoreMousedisappear()" --- 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) {