Skip to main content

Bug Tracker

Side navigation

#1618 closed bug (fixed)

Opened September 14, 2007 04:04PM UTC

Closed October 06, 2007 05:05PM UTC

Bind & unbind

Reported by: victorbartel Owned by:
Priority: critical Milestone: 1.2.2
Component: event Version: 1.2.1
Keywords: bind unbind Cc:
Blocked by: Blocking:


It seems that there is a bug in jquery 1.2, related with events management(bind/unbind). I guess that I had something like memory leak. When I bind/unbind some function for first time it seems to work without problems but if I bind my function again and again, this one will be executed n+1 times when event is handled, and so on for each function execution. With jquery 1.1.4 it works great.

I prepared a demonstration for this bug.

Example with jquery 1.2

Example with jquery 1.1.4

In this page you will see a gridview component in the top and console element in the bottom. Each time when you try to resize grid column, the console will print out cursorX position. During the test in index2.html page you will observe that for each resizing, cursorX value will be duplicate. To realize resizing functionality I used bind/unbind methods. Excuse me for poor explication, but it’s more easy to understand trying my examples. Thank you in advanced.


Best regards,

Victor Bartel

Attachments (0)
Change History (3)

Changed October 03, 2007 08:45PM UTC by bfattori comment:1

We're experiencing a similar issue whereby the events that are triggered via a call to the event function on the jQuery object fire properly [a call to click()]. However, clicking the DOM element fires the event repeatedly, even though we've used unbind("click")

Changed October 03, 2007 09:44PM UTC by davidserduke comment:2

Take a look at the summary for this ticket.

I tried the original proposed one line change for 1731 (without the other IE leak changes) and it fixes the problem in this test case.

Changed October 06, 2007 05:05PM UTC by brandon comment:3

resolution: → fixed
status: newclosed

Fixed in Rev [3578]