Skip to content

Commit 0705be4

Browse files
committed
Event: remove deprecated event aliases
Fixes jquerygh-2286 Closes jquerygh-2287 Ref trac-11733
1 parent c074006 commit 0705be4

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
@@ -901,7 +901,7 @@ test("mouseenter, mouseleave don't catch exceptions", function() {
901901
if ( jQuery.fn.click ) {
902902

903903
test("trigger() shortcuts", function() {
904-
expect(6);
904+
expect(5);
905905

906906
var counter, clickCounter,
907907
elem = jQuery("<li><a href='#'>Change location</a></li>").prependTo("#firstUL");
@@ -933,13 +933,6 @@ if ( jQuery.fn.click ) {
933933
jQuery("#simon1").click();
934934
equal( clickCounter, 1, "Check that click, triggers onclick event handler on an a tag also" );
935935

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

0 commit comments

Comments
 (0)