mirror of
https://github.com/jquery/jquery.git
synced 2025-01-10 18:24:24 +00:00
Fix some spacing and comment issues that crept in with the rebase.
This commit is contained in:
parent
29386db319
commit
879be3d812
@ -397,11 +397,10 @@ jQuery.event = {
|
||||
},
|
||||
|
||||
handle: function( event ) {
|
||||
// It's rare to arrive without handlers to call, so do all setup now.
|
||||
// Snapshot the handlers list since a called handler may add/remove events.
|
||||
event = jQuery.event.fix( event || window.event );
|
||||
// Snapshot the handlers list since a called handler may add/remove events.
|
||||
var handlers = ((jQuery._data( this, "events" ) || {})[ event.type ] || []).slice(0),
|
||||
all_handlers = !event.exclusive && !event.namespace,
|
||||
run_all = !event.exclusive && !event.namespace,
|
||||
args = jQuery.makeArray( arguments );
|
||||
|
||||
// Use the fix-ed Event rather than the (read-only) native event
|
||||
@ -413,7 +412,7 @@ jQuery.event = {
|
||||
|
||||
// Triggered event must 1) be non-exclusive and have no namespace, or
|
||||
// 2) have namespace(s) a subset or equal to those in the bound event.
|
||||
if ( all_handlers || event.namespace_re.test( handleObj.namespace ) ) {
|
||||
if ( run_all || event.namespace_re.test( handleObj.namespace ) ) {
|
||||
// Pass in a reference to the handler function itself
|
||||
// So that we can later remove it
|
||||
event.handler = handleObj.handler;
|
||||
|
Loading…
Reference in New Issue
Block a user