Opened 8 years ago

Closed 8 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:2 Changed 8 years ago by Michael DellaNoce

Resolution: fixed
Status: newclosed

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.