We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 91ef69d commit 5fb9629Copy full SHA for 5fb9629
ui/jquery.ui.widget.js
@@ -374,7 +374,7 @@ $.Widget.prototype = {
374
},
375
376
_trigger: function( type, event, data ) {
377
- var args, prop, orig,
+ var prop, orig,
378
callback = this.options[ type ];
379
380
data = data || {};
@@ -397,13 +397,8 @@ $.Widget.prototype = {
397
}
398
399
this.element.trigger( event, data );
400
-
401
- args = $.isArray( data ) ?
402
- [ event ].concat( data ) :
403
- [ event, data ];
404
405
return !( $.isFunction( callback ) &&
406
- callback.apply( this.element[0], args ) === false ||
+ callback.apply( this.element[0], [ event ].concat( data ) ) === false ||
407
event.isDefaultPrevented() );
408
409
};
0 commit comments