Skip to main content

Bug Tracker

Side navigation

#942 closed bug (worksforme)

Opened February 12, 2007 02:28AM UTC

Closed February 26, 2007 01:25AM UTC

jQuery.unbind(element,"eventtype") not working in IE7

Reported by: Owned by:
Priority: major Milestone: 1.1.2
Component: event Version: 1.1.1
Keywords: unbind Cc:
Blocked by: Blocking:

Using a debugger, I stepped through the code, and found the problem is here:

for ( var i in[type] ) delete[type][i];

In this specific case, the type was "mouseover", and there was only one event of that type. Rather than stepping through that code, it was completely skipped over. When I ran the command:


This removed the event. So perhaps there is some problem with the javascript enumerator when there is only one element in a collection? Not sure.

Attachments (0)
Change History (4)

Changed February 22, 2007 10:24PM UTC by john comment:1

version: → 1.1.1

Would it be possible to provide a more-complete example of this occurring? Does this error also occur in IE6?

Changed February 23, 2007 06:14PM UTC by brandon comment:2

I am unable to reproduce this. Could you provide a test case?

Changed February 23, 2007 11:02PM UTC by jeffkretz comment:3

I can only assume that I had something wrong in my original project, because I can't reproduce this error either. Perhaps I was running some additional script that conflicted with the jQuery event model.

This should be closed, sorry 'bout that.


Changed February 26, 2007 01:25AM UTC by brandon comment:4

resolution: → worksforme
status: newclosed

Glad it got worked out. Feel free to reopen the ticket if you are able to reproduce the issue.