Fix: add dependencies

This commit is contained in:
ECAILLE Fabrice (externe)
2017-05-04 10:26:11 +02:00
parent 3331ead68a
commit e2277667c5
582 changed files with 130905 additions and 2 deletions

View File

@@ -0,0 +1,15 @@
jQuery.each( ("blur focus focusin focusout load resize scroll unload click dblclick " +
"mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave " +
"change select submit keydown keypress keyup error 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.hover = function( fnOver, fnOut ) {
return this.mouseenter( fnOver ).mouseleave( fnOut || fnOver );
};