Opened 15 years ago
Closed 15 years ago
#2199 closed bug (invalid)
Passing arbitrary data to an event trough trigger function doesn't work
Reported by: | weenie | Owned by: | |
---|---|---|---|
Priority: | critical | Milestone: | 1.2.3 |
Component: | event | Version: | 1.2.2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
Example 2 on http://docs.jquery.com/Events/trigger doesn't work. Here the example code:
$("p").click( function (event, a, b) {
when a normal click fires, a and b are undefined for a trigger like below a refers too "foo" and b refers to "bar"
} ).trigger("click", ["foo", "bar"]);
I've done my own example for this (see Attachement).
Attachments (1)
Change History (3)
Changed 15 years ago by
Attachment: | trigger.html added |
---|
comment:1 Changed 15 years ago by
comment:2 Changed 15 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
I think this is not a bug, just didn't understand the docs correctly. You can close this bug report, sorry.