Bug Tracker

Opened 8 years ago

Closed 8 years ago

Last modified 5 years ago

#3616 closed bug (invalid)

Double event execution

Reported by: webJ@… Owned by: brandon
Priority: major Milestone: 1.3
Component: event Version: 1.2.6
Keywords: Cc: webJ@…
Blocked by: Blocking:


I have found that sometimes an event is executed twice. $('#submit').click(function() { ... this executed twice ... } Dont know why.

Change History (7)

comment:1 Changed 8 years ago by flesler

  • Cc webJ@… added

Can you provide a test case ? a minimalistic html file with the requires html and js to reproduce the problem

comment:2 Changed 8 years ago by webJ@…

I attached file with code where I have problems.

Mainly its all about:

$('#submit_nowe_zam<?=$this->escape($klienci->id)?>').click(function() { $('#zapis<?=$this->escape($klienci->id)?>').click(function() {

I get ajax success and java script alerts twice, unfortunately.

comment:3 Changed 8 years ago by bundy

I have the exact same issue with a plugin a wrote for my webapp..

comment:4 Changed 8 years ago by webJ@…

I have tested it with: dbclick, mouseup, mousedown and it accures everytime. Also thought it was a browser bug but its the same on IE6, IE7 and Firefox 3.

When setting asynchronous transmission on ajax, it waits a second and gives an unwanted, second execution (doubled).

Does anyone found a solution (patch) to that?

comment:5 Changed 8 years ago by webJ@…


When event handler is outside $(document).ready(function() {... everthing seems to be ok.

comment:6 Changed 8 years ago by dmethvin

Sounds like this was not a jQuery problem so I will close the ticket.

comment:7 Changed 8 years ago by dmethvin

  • Resolution set to invalid
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.