Fix UI.hover's asapTest firing constently in some cases.

This commit is contained in:
Nicolas Stepien 2013-04-02 13:56:43 +02:00
parent ded92b94c2
commit 7af57026bc

View File

@ -289,8 +289,10 @@ UI = do ->
o.hover = hover.bind o o.hover = hover.bind o
o.hoverend = hoverend.bind o o.hoverend = hoverend.bind o
$.asap asapTest, -> $.asap ->
o.hover o.latestEvent !el.parentNode or asapTest()
, ->
o.hover o.latestEvent if el.parentNode
$.on root, endEvents, o.hoverend $.on root, endEvents, o.hoverend
$.on root, 'mousemove', o.hover $.on root, 'mousemove', o.hover