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 {