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/support.js')
-rw-r--r--libs/bower_components/jquery/src/event/support.js20
1 files changed, 11 insertions, 9 deletions
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;
-});
+} );