Commit ef30bdf4 authored by Oleg Gaidarenko's avatar Oleg Gaidarenko

Event: remove deprecated event aliases

(Cherry-picked from 0705be475092aede1eddae01319ec931fb9c65fc)
Fixes gh-2286
Closes gh-2287
Ref trac-11733
parent 57fb2dc0
...@@ -3,9 +3,9 @@ define([ ...@@ -3,9 +3,9 @@ define([
"../event" "../event"
], function( jQuery ) { ], 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 " + "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 ) { function( i, name ) {
// Handle event binding // Handle event binding
......
...@@ -905,7 +905,7 @@ test("mouseenter, mouseleave don't catch exceptions", function() { ...@@ -905,7 +905,7 @@ test("mouseenter, mouseleave don't catch exceptions", function() {
if ( jQuery.fn.click ) { if ( jQuery.fn.click ) {
test("trigger() shortcuts", function() { test("trigger() shortcuts", function() {
expect(6); expect(5);
var counter, clickCounter, var counter, clickCounter,
elem = jQuery("<li><a href='#'>Change location</a></li>").prependTo("#firstUL"); elem = jQuery("<li><a href='#'>Change location</a></li>").prependTo("#firstUL");
...@@ -937,13 +937,6 @@ if ( jQuery.fn.click ) { ...@@ -937,13 +937,6 @@ if ( jQuery.fn.click ) {
jQuery("#simon1").click(); jQuery("#simon1").click();
equal( clickCounter, 1, "Check that click, triggers onclick event handler on an a tag also" ); equal( clickCounter, 1, "Check that click, triggers onclick event handler on an a tag also" );
elem = jQuery("<img />").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) // test that special handlers do not blow up with VML elements (#7071)
jQuery("<xml:namespace ns='urn:schemas-microsoft-com:vml' prefix='v' />").appendTo("head"); jQuery("<xml:namespace ns='urn:schemas-microsoft-com:vml' prefix='v' />").appendTo("head");
jQuery("<v:oval id='oval' style='width:100pt;height:75pt;' fillcolor='red'> </v:oval>").appendTo("#form"); jQuery("<v:oval id='oval' style='width:100pt;height:75pt;' fillcolor='red'> </v:oval>").appendTo("#form");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment