Blame view

bower_components/jquery/src/event/alias.js 652 Bytes
a1a3bc73   Luigi Serra   graphs updates
1
  define( [
74249687   Luigi Serra   Cross browser con...
2
  	"../core",
a1a3bc73   Luigi Serra   graphs updates
3
4
5
  
  	"../event",
  	"./trigger"
74249687   Luigi Serra   Cross browser con...
6
7
  ], function( jQuery ) {
  
a1a3bc73   Luigi Serra   graphs updates
8
  jQuery.each( ( "blur focus focusin focusout load resize scroll unload click dblclick " +
74249687   Luigi Serra   Cross browser con...
9
  	"mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave " +
a1a3bc73   Luigi Serra   graphs updates
10
11
  	"change select submit keydown keypress keyup error contextmenu" ).split( " " ),
  	function( i, name ) {
74249687   Luigi Serra   Cross browser con...
12
13
14
15
16
17
18
  
  	// Handle event binding
  	jQuery.fn[ name ] = function( data, fn ) {
  		return arguments.length > 0 ?
  			this.on( name, null, data, fn ) :
  			this.trigger( name );
  	};
a1a3bc73   Luigi Serra   graphs updates
19
  } );
74249687   Luigi Serra   Cross browser con...
20
  
a1a3bc73   Luigi Serra   graphs updates
21
  jQuery.fn.extend( {
74249687   Luigi Serra   Cross browser con...
22
23
  	hover: function( fnOver, fnOut ) {
  		return this.mouseenter( fnOver ).mouseleave( fnOut || fnOver );
74249687   Luigi Serra   Cross browser con...
24
  	}
a1a3bc73   Luigi Serra   graphs updates
25
  } );
74249687   Luigi Serra   Cross browser con...
26
  
a1a3bc73   Luigi Serra   graphs updates
27
  } );