Closed gavinhungry closed 5 years ago
In the block for stopOnFocus, the mouseover handler tries to clearTimeout on event.target.timeOutValue (it assumes that event.target is divElement).
stopOnFocus
mouseover
clearTimeout
event.target.timeOutValue
event.target
divElement
When hovering a child element though, event.target may not be what is expected, and event.target.timeOutValue will be undefined.
undefined
Instead, use divElement.timeOutValue explicitly.
divElement.timeOutValue
Good catch! Having nested elements would've caused inconsistencies. Merging now.
In the block for
stopOnFocus
, themouseover
handler tries toclearTimeout
onevent.target.timeOutValue
(it assumes thatevent.target
isdivElement
).When hovering a child element though,
event.target
may not be what is expected, andevent.target.timeOutValue
will beundefined
.Instead, use
divElement.timeOutValue
explicitly.