Special events - _default method doesn't have access to the `data` argument of the trigger method
|Reported by:||centi||Owned by:||dmethvin|
Description (last modified by )
The trigger method has an optional second argument
data which is passed to all event handlers bound to the particular event which was triggered.
We can use special events, to define the behavior of our custom events, including a _default method. I would expect that this _default method will have access to the
data argument, like the event handlers. But it doesn't.
jQuery source, line 2501:
if ( (!special._default || special._default.call( elem, event ) === false) &&
if ( (!special._default || special._default.call( elem, event, data ) === false) &&
Change History (14)
comment:11 Changed 6 years ago by
|Milestone:||1.next → 1.7|
|Owner:||set to dmethvin|
|Priority:||low → blocker|
|Status:||open → assigned|