]>
git.r.bdr.sh - rbdr/dotfiles/blob - atom/packages/ex-mode/node_modules/space-pen/node_modules/jquery/src/event/alias.js
7e7917508139f73023952de24c9ca2a38da7d1c7
4 ], function( jQuery
) {
6 jQuery
.each( ("blur focus focusin focusout load resize scroll unload click dblclick " +
7 "mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave " +
8 "change select submit keydown keypress keyup error contextmenu").split(" "), function( i
, name
) {
10 // Handle event binding
11 jQuery
.fn
[ name
] = function( data
, fn
) {
12 return arguments
.length
> 0 ?
13 this.on( name
, null, data
, fn
) :
19 hover: function( fnOver
, fnOut
) {
20 return this.mouseenter( fnOver
).mouseleave( fnOut
|| fnOver
);
23 bind: function( types
, data
, fn
) {
24 return this.on( types
, null, data
, fn
);
26 unbind: function( types
, fn
) {
27 return this.off( types
, null, fn
);
30 delegate: function( selector
, types
, data
, fn
) {
31 return this.on( types
, selector
, data
, fn
);
33 undelegate: function( selector
, types
, fn
) {
34 // ( namespace ) or ( selector, types [, fn] )
35 return arguments
.length
=== 1 ? this.off( selector
, "**" ) : this.off( types
, selector
|| "**", fn
);