Skip to main content

Bug Tracker

Side navigation

#6213 closed bug (invalid)

Opened March 03, 2010 05:15PM UTC

Closed March 03, 2010 05:53PM UTC

.click() fires to often since 1.4.2

Reported by: koder Owned by:
Priority: Milestone: 1.4.3
Component: event Version: 1.4.2
Keywords: unbind event click Cc:
Blocked by: Blocking:
Description

I experienced a very strange bug, moving from 1.4.1 to 1.4.2:

I attach a .click() event to an image, calling func() when it fires.

In this func(), the first thing I do, is .unbind() everything on that image. Making sure you can never click twice.

This worked fine in 1.3.x and 1.4.0 and 1.4.1. But it the new 1.4.2, it doesn't always work. And clicking the image once can cause it to fire many times! I have seen 40 times and more.

Attachments (0)
Change History (1)

Changed March 03, 2010 05:53PM UTC by john comment:1

resolution: → invalid
status: newclosed

If you want to prevent other functions from firing, that are bound to the same element, you should be using .stopImmediatePropagation(). Calling just .unbind() won't have that effect (this was actually a bug fix in 1.4.2).