Event: remove jQuery.event.global

jQuery.event.global has been write-only in the jQuery source for the past few
years; reading from it was removed in c2d6847de0
when fixing the trac-12989 bug.

Closes gh-4602
This commit is contained in:
Michał Gołębiowski-Owczarek 2020-02-10 19:13:09 +01:00 committed by GitHub
parent 3edfa1bcdc
commit 18db87172c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 6 deletions

View File

@ -101,8 +101,6 @@ function on( elem, types, selector, data, fn, one ) {
*/
jQuery.event = {
global: {},
add: function( elem, types, handler, data, selector ) {
var handleObjIn, eventHandle, tmp,
@ -210,9 +208,6 @@ jQuery.event = {
} else {
handlers.push( handleObj );
}
// Keep track of which events have ever been used, for event optimization
jQuery.event.global[ type ] = true;
}
},

View File

@ -80,7 +80,6 @@ QUnit.testDone( function() {
supportjQuery( "#qunit-fixture-iframe" ).remove();
// Reset internal jQuery state
jQuery.event.global = {};
if ( ajaxSettings ) {
jQuery.ajaxSettings = jQuery.extend( true, {}, ajaxSettings );
} else {