Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'libs/bower_components/jquery/src/event')
-rw-r--r--libs/bower_components/jquery/src/event/alias.js30
-rw-r--r--libs/bower_components/jquery/src/event/support.js20
2 files changed, 19 insertions, 31 deletions
diff --git a/libs/bower_components/jquery/src/event/alias.js b/libs/bower_components/jquery/src/event/alias.js
index 7e79175081..1f06b8aaa6 100644
--- a/libs/bower_components/jquery/src/event/alias.js
+++ b/libs/bower_components/jquery/src/event/alias.js
@@ -1,11 +1,12 @@
-define([
+define( [
"../core",
"../event"
], function( jQuery ) {
-jQuery.each( ("blur focus focusin focusout load resize scroll unload click dblclick " +
+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 ) {
+ "change select submit keydown keypress keyup error contextmenu" ).split( " " ),
+ function( i, name ) {
// Handle event binding
jQuery.fn[ name ] = function( data, fn ) {
@@ -13,27 +14,12 @@ jQuery.each( ("blur focus focusin focusout load resize scroll unload click dblcl
this.on( name, null, data, fn ) :
this.trigger( name );
};
-});
+} );
-jQuery.fn.extend({
+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/libs/bower_components/jquery/src/event/support.js b/libs/bower_components/jquery/src/event/support.js
index caac5179f3..9787f85d19 100644
--- a/libs/bower_components/jquery/src/event/support.js
+++ b/libs/bower_components/jquery/src/event/support.js
@@ -1,26 +1,28 @@
-define([
+define( [
+ "../var/document",
"../var/support"
-], function( support ) {
+], function( document, support ) {
-(function() {
+( 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 }) {
+ // Support: IE<9 (lack submit/change bubble), Firefox (lack focus(in | out) events)
+ for ( i in { submit: true, change: true, focusin: true } ) {
eventName = "on" + i;
- if ( !(support[ i + "Bubbles" ] = eventName in window) ) {
+ if ( !( support[ i ] = 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;
+ support[ i ] = div.attributes[ eventName ].expando === false;
}
}
// Null elements to avoid leaks in IE.
div = null;
-})();
+} )();
return support;
-});
+} );