Skip to content

Commit 18db871

Browse files
authored
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 c2d6847 when fixing the trac-12989 bug. Closes gh-4602
1 parent 3edfa1b commit 18db871

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

src/event.js

-5
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,6 @@ function on( elem, types, selector, data, fn, one ) {
101101
*/
102102
jQuery.event = {
103103

104-
global: {},
105-
106104
add: function( elem, types, handler, data, selector ) {
107105

108106
var handleObjIn, eventHandle, tmp,
@@ -210,9 +208,6 @@ jQuery.event = {
210208
} else {
211209
handlers.push( handleObj );
212210
}
213-
214-
// Keep track of which events have ever been used, for event optimization
215-
jQuery.event.global[ type ] = true;
216211
}
217212

218213
},

test/data/testrunner.js

-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ QUnit.testDone( function() {
8080
supportjQuery( "#qunit-fixture-iframe" ).remove();
8181

8282
// Reset internal jQuery state
83-
jQuery.event.global = {};
8483
if ( ajaxSettings ) {
8584
jQuery.ajaxSettings = jQuery.extend( true, {}, ajaxSettings );
8685
} else {

0 commit comments

Comments
 (0)