Fix some spacing and comment issues that crept in with the rebase.
This commit is contained in:
parent
29386db319
commit
879be3d812
1 changed files with 58 additions and 59 deletions
|
@ -397,11 +397,10 @@ jQuery.event = {
|
||||||
},
|
},
|
||||||
|
|
||||||
handle: function( 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 );
|
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),
|
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 );
|
args = jQuery.makeArray( arguments );
|
||||||
|
|
||||||
// Use the fix-ed Event rather than the (read-only) native event
|
// 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
|
// 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.
|
// 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
|
// Pass in a reference to the handler function itself
|
||||||
// So that we can later remove it
|
// So that we can later remove it
|
||||||
event.handler = handleObj.handler;
|
event.handler = handleObj.handler;
|
||||||
|
|
Loading…
Add table
Reference in a new issue