Skip to main content

Bug Tracker

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).

Attachments (1)
  • trigger.html (0.4 KB) - added by weenie January 21, 2008 09:18AM UTC.
Change History (2)

Changed January 21, 2008 09:34AM UTC by weenie comment:1

I think this is not a bug, just didn't understand the docs correctly. You can close this bug report, sorry.

Changed January 21, 2008 02:32PM UTC by scott.gonzal comment:2

resolution: → invalid
status: newclosed