]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
docs: improve doc in "ignoreMousedisappear()"
authorNicolas Coden <nicolas@ncoden.fr>
Mon, 30 Jul 2018 20:27:21 +0000 (22:27 +0200)
committerNicolas Coden <nicolas@ncoden.fr>
Mon, 30 Jul 2018 20:27:21 +0000 (22:27 +0200)
js/foundation.core.utils.js

index d9c37d0a14471c16f6f8d1a929958b8ca4ab0ae9..3bb5d53855cec4754d43ffe2b42a8d488a665dee 100644 (file)
@@ -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) {