Skip to content

Commit ef30bdf

Browse files
committed
Event: remove deprecated event aliases
(Cherry-picked from 0705be4) Fixes gh-2286 Closes gh-2287 Ref trac-11733
1 parent 57fb2dc commit ef30bdf

File tree

2 files changed

+3
-10
lines changed

2 files changed

+3
-10
lines changed

src/event/alias.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ define([
33
"../event"
44
], function( jQuery ) {
55

6-
jQuery.each( ("blur focus focusin focusout load resize scroll unload click dblclick " +
6+
jQuery.each( ("blur focus focusin focusout resize scroll click dblclick " +
77
"mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave " +
8-
"change select submit keydown keypress keyup error contextmenu").split(" "),
8+
"change select submit keydown keypress keyup contextmenu").split(" "),
99
function( i, name ) {
1010

1111
// Handle event binding

test/unit/event.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -905,7 +905,7 @@ test("mouseenter, mouseleave don't catch exceptions", function() {
905905
if ( jQuery.fn.click ) {
906906

907907
test("trigger() shortcuts", function() {
908-
expect(6);
908+
expect(5);
909909

910910
var counter, clickCounter,
911911
elem = jQuery("<li><a href='#'>Change location</a></li>").prependTo("#firstUL");
@@ -937,13 +937,6 @@ if ( jQuery.fn.click ) {
937937
jQuery("#simon1").click();
938938
equal( clickCounter, 1, "Check that click, triggers onclick event handler on an a tag also" );
939939

940-
elem = jQuery("<img />").load(function(){
941-
ok( true, "Trigger the load event, using the shortcut .load() (#2819)");
942-
}).load();
943-
944-
// manually clean up detached elements
945-
elem.remove();
946-
947940
// test that special handlers do not blow up with VML elements (#7071)
948941
jQuery("<xml:namespace ns='urn:schemas-microsoft-com:vml' prefix='v' />").appendTo("head");
949942
jQuery("<v:oval id='oval' style='width:100pt;height:75pt;' fillcolor='red'> </v:oval>").appendTo("#form");

0 commit comments

Comments
 (0)