Opened 14 years ago
Closed 12 years ago
#4792 closed enhancement (wontfix)
modifying the arguments for event trigger
Reported by: | simon_000666 | Owned by: | brandon |
---|---|---|---|
Priority: | minor | Milestone: | 1.4 |
Component: | event | Version: | 1.3.2 |
Keywords: | bind | Cc: | |
Blocked by: | Blocking: |
Description
I think that when you call trigger, the second argument should extend the event.data object in the call rather than being the next argument so it is more consistent with the way bind works.
e.g. foo.trigger("bar", {foo: bar1}, [{foo2: bar}]);
I started a thread about it here: http://groups.google.com/group/jquery-dev/browse_thread/thread/7a68385062295c66/aceaa52feb7cef27#aceaa52feb7cef27
Note: See
TracTickets for help on using
tickets.
The current design of segregating bind-time data from trigger-time data has its advantages, and extending the object would add another thing to be done at event delivery time which could impact performance.