From 18db87172cffbe48b92e30b70249e304863a70f9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Micha=C5=82=20Go=C5=82=C4=99biowski-Owczarek?= Date: Mon, 10 Feb 2020 19:13:09 +0100 Subject: [PATCH] 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 c2d6847de09a52496f78baebc04f317e11ece6d2 when fixing the trac-12989 bug. Closes gh-4602 --- src/event.js | 5 ----- test/data/testrunner.js | 1 - 2 files changed, 6 deletions(-) diff --git a/src/event.js b/src/event.js index 796d96210..a79552c17 100644 --- a/src/event.js +++ b/src/event.js @@ -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; } }, diff --git a/test/data/testrunner.js b/test/data/testrunner.js index 816b271a6..fd9bc6a49 100644 --- a/test/data/testrunner.js +++ b/test/data/testrunner.js @@ -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 { -- 2.39.5