Show More
Commit Description:
fix wrong merge
Commit Description:
fix wrong merge
References:
File last commit:
Show/Diff file:
Action:
node_modules/jquery/src/event/alias.js
| 29 lines
| 649 B
| application/javascript
| JavascriptLexer
|
r789 | define( [ | |||
"../core", | ||||
"../event", | ||||
"./trigger" | ||||
], function( jQuery ) { | ||||
"use strict"; | ||||
jQuery.each( ( "blur focus focusin focusout resize scroll click dblclick " + | ||||
"mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave " + | ||||
"change select submit keydown keypress keyup contextmenu" ).split( " " ), | ||||
function( i, name ) { | ||||
// Handle event binding | ||||
jQuery.fn[ name ] = function( data, fn ) { | ||||
return arguments.length > 0 ? | ||||
this.on( name, null, data, fn ) : | ||||
this.trigger( name ); | ||||
}; | ||||
} ); | ||||
jQuery.fn.extend( { | ||||
hover: function( fnOver, fnOut ) { | ||||
return this.mouseenter( fnOver ).mouseleave( fnOut || fnOver ); | ||||
} | ||||
} ); | ||||
} ); | ||||