Side navigation
#2199 closed bug (invalid)
Opened January 21, 2008 09:17AM UTC
Closed January 21, 2008 02:32PM UTC
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).
I think this is not a bug, just didn't understand the docs correctly. You can close this bug report, sorry.