From: Oleg Gaidarenko Date: Sat, 9 May 2015 18:39:49 +0000 (+0300) Subject: Event: remove deprecated event aliases X-Git-Tag: 3.0.0-alpha1+compat~48 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=ef30bdf4f1b361b6f2e99f5b7233b419f95a62f2;p=jquery.git Event: remove deprecated event aliases (Cherry-picked from 0705be475092aede1eddae01319ec931fb9c65fc) Fixes gh-2286 Closes gh-2287 Ref trac-11733 --- diff --git a/src/event/alias.js b/src/event/alias.js index 4ec920a03..eb43537ff 100644 --- a/src/event/alias.js +++ b/src/event/alias.js @@ -3,9 +3,9 @@ define([ "../event" ], function( jQuery ) { -jQuery.each( ("blur focus focusin focusout load resize scroll unload click dblclick " + +jQuery.each( ("blur focus focusin focusout resize scroll click dblclick " + "mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave " + - "change select submit keydown keypress keyup error contextmenu").split(" "), + "change select submit keydown keypress keyup contextmenu").split(" "), function( i, name ) { // Handle event binding diff --git a/test/unit/event.js b/test/unit/event.js index dbfb2cd53..0476b8e92 100644 --- a/test/unit/event.js +++ b/test/unit/event.js @@ -905,7 +905,7 @@ test("mouseenter, mouseleave don't catch exceptions", function() { if ( jQuery.fn.click ) { test("trigger() shortcuts", function() { - expect(6); + expect(5); var counter, clickCounter, elem = jQuery("
  • Change location
  • ").prependTo("#firstUL"); @@ -937,13 +937,6 @@ if ( jQuery.fn.click ) { jQuery("#simon1").click(); equal( clickCounter, 1, "Check that click, triggers onclick event handler on an a tag also" ); - elem = jQuery("").load(function(){ - ok( true, "Trigger the load event, using the shortcut .load() (#2819)"); - }).load(); - - // manually clean up detached elements - elem.remove(); - // test that special handlers do not blow up with VML elements (#7071) jQuery("").appendTo("head"); jQuery(" ").appendTo("#form");