mirror of
https://github.com/jquery/jquery.git
synced 2025-01-10 18:24:24 +00:00
Fixed docs for trigger, describing the second argument.
This commit is contained in:
parent
de4e28e1ba
commit
43f235f425
@ -313,9 +313,19 @@ jQuery.fn.extend({
|
||||
* @before <p click="alert('hello')">Hello</p>
|
||||
* @result alert('hello')
|
||||
*
|
||||
* @example $("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"]);
|
||||
* @desc Example of how to pass arbitrary to an event
|
||||
*
|
||||
* @before <p click="alert('hello')">Hello</p>
|
||||
* @result alert('hello')
|
||||
*
|
||||
* @name trigger
|
||||
* @type jQuery
|
||||
* @param String type An event type to trigger.
|
||||
* @param Array data (optional) Additional data to pass as arguments (after the event object) to the event handler
|
||||
* @cat Events
|
||||
*/
|
||||
trigger: function( type, data ) {
|
||||
|
Loading…
Reference in New Issue
Block a user