Search and Top Navigation
#6795 closed bug (fixed)
Opened December 30, 2010 08:05PM UTC
Closed February 01, 2011 12:01PM UTC
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/
Attachments (0)
Change History (2)
Changed December 30, 2010 08:40PM UTC by comment:1
Changed February 01, 2011 12:01PM UTC by comment:2
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
Committed to GitHub: https://github.com/mdellanoce/jquery-ui/commit/ca8585e022f029a7b33d2f8c1d888a5b44b479f4