Opened 13 years ago
Closed 13 years ago
#6795 closed bug (fixed)
Widget: _trigger passes array arguments to handlers inconsistently
Reported by: | mdellanoce | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | 1.9.0 |
Component: | ui.widget | Version: | 1.8.7 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
If you pass an array to the third parameter of _trigger
, it will send an array to the second parameter of a callback, but for handlers attached with bind the array will be split and passed as arguments 2...n.
Please see http://jsfiddle.net/6x7mw/1/
Change History (2)
comment:1 Changed 13 years ago by
comment:2 Changed 13 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Widget: Modified _trigger to invoke callbacks with apply so that handlers are invoked the same way .trigger() invokes them. Fixes #6795 - Widget: _trigger passes array arguments to handlers inconsistently.
Changeset: b3fcf174716203013e9844f1aee3216f971fcd43
Note: See
TracTickets for help on using
tickets.
Committed to GitHub: https://github.com/mdellanoce/jquery-ui/commit/ca8585e022f029a7b33d2f8c1d888a5b44b479f4