diff options
| author | 2021-02-03 19:17:00 -0500 | |
|---|---|---|
| committer | 2021-02-03 19:17:00 -0500 | |
| commit | 3a0d66f07b112b6d2bdc2b57bbf717a89a351ce6 (patch) | |
| tree | a7cf56282e54f05785243bc1e903d6594f2c06ba /bower_components/jquery/src/event | |
| parent | 787b97a4cb24330b36f11297c6d3a7a473a907d0 (diff) | |
New upstream version 8.1.2.upstream/8.1.2
Diffstat (limited to 'bower_components/jquery/src/event')
| -rw-r--r-- | bower_components/jquery/src/event/ajax.js | 13 | ||||
| -rw-r--r-- | bower_components/jquery/src/event/alias.js | 39 | ||||
| -rw-r--r-- | bower_components/jquery/src/event/support.js | 26 |
3 files changed, 0 insertions, 78 deletions
diff --git a/bower_components/jquery/src/event/ajax.js b/bower_components/jquery/src/event/ajax.js deleted file mode 100644 index 278c403..0000000 --- a/bower_components/jquery/src/event/ajax.js +++ /dev/null @@ -1,13 +0,0 @@ -define([ - "../core", - "../event" -], function( jQuery ) { - -// Attach a bunch of functions for handling common AJAX events -jQuery.each( [ "ajaxStart", "ajaxStop", "ajaxComplete", "ajaxError", "ajaxSuccess", "ajaxSend" ], function( i, type ) { - jQuery.fn[ type ] = function( fn ) { - return this.on( type, fn ); - }; -}); - -}); diff --git a/bower_components/jquery/src/event/alias.js b/bower_components/jquery/src/event/alias.js deleted file mode 100644 index 7e79175..0000000 --- a/bower_components/jquery/src/event/alias.js +++ /dev/null @@ -1,39 +0,0 @@ -define([ - "../core", - "../event" -], function( jQuery ) { - -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.extend({ - hover: function( fnOver, fnOut ) { - return this.mouseenter( fnOver ).mouseleave( fnOut || fnOver ); - }, - - bind: function( types, data, fn ) { - return this.on( types, null, data, fn ); - }, - unbind: function( types, fn ) { - return this.off( types, null, fn ); - }, - - delegate: function( selector, types, data, fn ) { - return this.on( types, selector, data, fn ); - }, - undelegate: function( selector, types, fn ) { - // ( namespace ) or ( selector, types [, fn] ) - return arguments.length === 1 ? this.off( selector, "**" ) : this.off( types, selector || "**", fn ); - } -}); - -}); diff --git a/bower_components/jquery/src/event/support.js b/bower_components/jquery/src/event/support.js deleted file mode 100644 index caac517..0000000 --- a/bower_components/jquery/src/event/support.js +++ /dev/null @@ -1,26 +0,0 @@ -define([ - "../var/support" -], function( support ) { - -(function() { - var i, eventName, - div = document.createElement( "div" ); - - // Support: IE<9 (lack submit/change bubble), Firefox 23+ (lack focusin event) - for ( i in { submit: true, change: true, focusin: true }) { - eventName = "on" + i; - - if ( !(support[ i + "Bubbles" ] = eventName in window) ) { - // Beware of CSP restrictions (https://developer.mozilla.org/en/Security/CSP) - div.setAttribute( eventName, "t" ); - support[ i + "Bubbles" ] = div.attributes[ eventName ].expando === false; - } - } - - // Null elements to avoid leaks in IE. - div = null; -})(); - -return support; - -}); |
