mirror of
https://github.com/jquery/jquery.git
synced 2025-01-10 18:24:24 +00:00
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:
parent
3edfa1bcdc
commit
18db87172c
@ -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;
|
||||
}
|
||||
|
||||
},
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user