Side navigation
#9820 closed bug (invalid)
Opened July 13, 2011 02:40PM UTC
Closed July 13, 2011 11:33PM UTC
Last modified August 31, 2012 12:58PM UTC
$(window).mouseleave() throws "compareDocumentPosition is not a function"
Reported by: | Craig Thompson | Owned by: | |
---|---|---|---|
Priority: | low | Milestone: | None |
Component: | event | Version: | 1.6.2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
Binding the mouseleave event to the window element throws an error in jQuery 1.6.2 and edge.This didn't happen in 1.6.2
Test case: http://jsfiddle.net/tqLwM/2/
Attachments (0)
Change History (3)
Changed July 13, 2011 11:33PM UTC by comment:1
component: | unfiled → event |
---|---|
priority: | undecided → low |
resolution: | → invalid |
status: | new → closed |
Changed August 31, 2012 12:46PM UTC by comment:2
I can confirm this on jQuery 1.8.0. Any updates?
Changed August 31, 2012 12:58PM UTC by comment:3
Yes, my update is that you are doing it wrong. Do not attach mouseleave events to window
. No further updates should be required.
Not sure why the behavior changed, but it is wrong to attach that event to a
window
. It works withdocument
as it should.