Bug Tracker

Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#1192 closed bug (duplicate)

Different order between user-triggered events and Jquery-triggered events

Reported by: julienw Owned by:
Priority: major Milestone: 1.1.3
Component: event Version: 1.1.2
Keywords: trigger Cc:
Blocked by: Blocking:


Let's take an example: onclick on a checkbox; when a normal user triggers the event (ie: he checks the checkbox), the checkbox is first checked, then the handler is run.

But when one programmatically click the checkbox using jquery, the handler is run and _then_ the checkbox is checked.

Example code is there : http://pastebin.ca/489630 and a live test is there : http://beta.everlong.org/jquery/jquery_test.htm

Clicking on the button and clicking the checkbox should lead to the same messages, but that's not the case.

Change History (1)

comment:1 Changed 16 years ago by brandon

Resolution: duplicate
Status: newclosed

I think you make a really good point but not all events fall into the given example. If a submit was to be triggered, then the handlers would never be run at all. Manual triggering of events is unfortunately not the same as if the user was creating the events.

I'm closing this bug out in favor of #873, which is to discuss how the event trigger system is to be reworked. Please feel free to continue this discussion on that ticket.

Note: See TracTickets for help on using tickets.