zurb/foundation — pull request #2860 by iamalexkempton (2013-07-25 14:04:16+00:00)
Title: Dropdown closes on rollout of trigger element for hover mode

Before, dropdown was only closing when rolling out of the dropdown element. Rolling out of the link itself was not hiding the dropdown.

This fixes that with a timer, clearing the timer if either the link or the dropdown element is rolled over.

Related issue:
https://github.com/zurb/foundation/issues/2524

Related fix:
http://stackoverflow.com/questions/1273566/how-do-i-check-if-the-mouse-is-over-an-element-in-jquery/1273609#1273609