Skip to main content

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 mdellanoce comment:1

Changed February 01, 2011 12:01PM UTC by Michael DellaNoce comment:2

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