Skip to main content

Bug Tracker

Side navigation

#1192 closed bug (duplicate)

Opened May 15, 2007 05:39PM UTC

Closed May 31, 2007 04:24AM UTC

Last modified June 21, 2007 02:33AM UTC

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:
Description

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.

Attachments (0)
Change History (1)

Changed May 31, 2007 04:24AM UTC by brandon comment:1

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.