Skip to content

Commit e4c5f87

Browse files
committed
Event: Reduce differences from master
1 parent 12230d3 commit e4c5f87

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

src/event.js

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ function safeActiveElement() {
3333
}
3434

3535
function on( elem, types, selector, data, fn, one ) {
36-
var type, origFn;
36+
var origFn, type;
3737

3838
// Types can be a map of types/handlers
3939
if ( typeof types === "object" ) {
@@ -431,7 +431,7 @@ jQuery.event = {
431431
// Make a writable jQuery.Event from the native event object
432432
event = jQuery.event.fix( event );
433433

434-
var i, ret, handleObj, matched, j,
434+
var i, j, ret, matched, handleObj,
435435
handlerQueue = [],
436436
args = slice.call( arguments ),
437437
handlers = ( jQuery._data( this, "events" ) || {} )[ event.type ] || [],
@@ -458,9 +458,8 @@ jQuery.event = {
458458
while ( (handleObj = matched.handlers[ j++ ]) &&
459459
!event.isImmediatePropagationStopped() ) {
460460

461-
// Triggered event must either 1) have no namespace, or
462-
// 2) have namespace(s) a subset or equal to those in the bound event
463-
// (both can have no namespace).
461+
// Triggered event must either 1) have no namespace, or 2) have namespace(s)
462+
// a subset or equal to those in the bound event (both can have no namespace).
464463
if ( !event.rnamespace || event.rnamespace.test( handleObj.namespace ) ) {
465464

466465
event.handleObj = handleObj;
@@ -488,16 +487,16 @@ jQuery.event = {
488487
},
489488

490489
handlers: function( event, handlers ) {
491-
var sel, handleObj, matches, i,
490+
var i, matches, sel, handleObj,
492491
handlerQueue = [],
493492
delegateCount = handlers.delegateCount,
494493
cur = event.target;
495494

496495
// Support (at least): Chrome, IE9
497496
// Find delegate handlers
497+
// Black-hole SVG <use> instance trees (#13180)
498498
//
499499
// Support: Firefox
500-
// Black-hole SVG <use> instance trees (#13180)
501500
// Avoid non-left-click bubbling in Firefox (#3861)
502501
if ( delegateCount && cur.nodeType && (!event.button || event.type !== "click") ) {
503502

0 commit comments

Comments
 (0)