Skip to content

Commit 56e8320

Browse files
brandonaaronkswedberg
authored andcommitted
Updating the second signature for .trigger to include the optional extraParameters. Fixes jquery#259
1 parent 56d6037 commit 56e8320

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

entries/trigger.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@
1818
<argument name="event" type="Event">
1919
<desc>A <a href="http://api.jquery.com/category/events/event-object/"><code>jQuery.Event</code></a> object.</desc>
2020
</argument>
21+
<argument name="extraParameters" optional="true">
22+
<type name="Array"/>
23+
<type name="PlainObject"/>
24+
<desc>Additional parameters to pass along to the event handler.</desc>
25+
</argument>
2126
</signature>
2227
<longdesc>
2328
<p>Any event handlers attached with <code>.on()</code> or one of its shortcut methods are triggered when the corresponding event occurs. They can be fired manually, however, with the <code>.trigger()</code> method. A call to <code>.trigger()</code> executes the handlers in the same order they would be if the event were triggered naturally by the user:</p>

0 commit comments

Comments
 (0)