Skip to main content

Bug Tracker

Side navigation

#7432 closed bug (worksforme)

Opened November 08, 2010 10:18AM UTC

Closed November 08, 2010 02:56PM UTC

Last modified March 15, 2012 12:38PM UTC

.undelegate() doesnt clear up properly

Reported by: dunkfordyce@gmail.com Owned by:
Priority: low Milestone: 1.5
Component: event Version: 1.4.3
Keywords: undelegate clear up Cc:
Blocked by: Blocking:
Description

Found this while delegating and undelegating alot - it appears there is some data left on the delegating element after .undelegate() - you have to call unbind() as well to truly clear all the data on the element.

This example demonstrates the problem - you can see the length of the click data goes up continuously for each delegate() call:

http://jsbin.com/ehani4/4/edit

Attachments (0)
Change History (3)

Changed November 08, 2010 11:15AM UTC by jitter comment:1

_comment0: Looks like you specified the wrong version on the ticket (1.4.3). In the test case you linked too you are actually using 1.4.2. \ \ It looks like this bug has already been fixed in 1.4.3 (at least for me switching to 1.4.3 in your test case fixed it in Opera, FF and Chrome). \ \ 1289214956042834

Looks like you specified the wrong version on the ticket (1.4.3). In the test case you linked too you are actually using 1.4.2.

This bug has already been fixed in 1.4.3 (at least for me switching to 1.4.3 in your test case fixed it in Opera, FF and Chrome).

Changed November 08, 2010 12:01PM UTC by anonymous comment:2

ah yes - i can confirm it has. sorry for the noise.

Changed November 08, 2010 02:56PM UTC by addyosmani comment:3

component: unfiledevent
keywords: → undelegate clear up
priority: undecidedlow
resolution: → worksforme
status: newclosed

As mentioned, the test case you provided was linking to jQuery 1.4.2 and this bug has been addressed in 1.4.3. It should work fine now.