Commit 90bdd031 authored by xjm's avatar xjm

Issue #2852636 by gnuget, kporras07: Update jQuery to version 2.2.4

parent d837f01c
/*! /*!
* jQuery JavaScript Library v2.2.3 * jQuery JavaScript Library v2.2.4
* http://jquery.com/ * http://jquery.com/
* *
* Includes Sizzle.js * Includes Sizzle.js
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
* Released under the MIT license * Released under the MIT license
* http://jquery.org/license * http://jquery.org/license
* *
* Date: 2016-04-05T19:26Z * Date: 2016-05-20T17:23Z
*/ */
(function( global, factory ) { (function( global, factory ) {
...@@ -65,7 +65,7 @@ var support = {}; ...@@ -65,7 +65,7 @@ var support = {};
var var
version = "2.2.3", version = "2.2.4",
// Define a local copy of jQuery // Define a local copy of jQuery
jQuery = function( selector, context ) { jQuery = function( selector, context ) {
...@@ -5006,13 +5006,14 @@ jQuery.Event.prototype = { ...@@ -5006,13 +5006,14 @@ jQuery.Event.prototype = {
isDefaultPrevented: returnFalse, isDefaultPrevented: returnFalse,
isPropagationStopped: returnFalse, isPropagationStopped: returnFalse,
isImmediatePropagationStopped: returnFalse, isImmediatePropagationStopped: returnFalse,
isSimulated: false,
preventDefault: function() { preventDefault: function() {
var e = this.originalEvent; var e = this.originalEvent;
this.isDefaultPrevented = returnTrue; this.isDefaultPrevented = returnTrue;
if ( e ) { if ( e && !this.isSimulated ) {
e.preventDefault(); e.preventDefault();
} }
}, },
...@@ -5021,7 +5022,7 @@ jQuery.Event.prototype = { ...@@ -5021,7 +5022,7 @@ jQuery.Event.prototype = {
this.isPropagationStopped = returnTrue; this.isPropagationStopped = returnTrue;
if ( e ) { if ( e && !this.isSimulated ) {
e.stopPropagation(); e.stopPropagation();
} }
}, },
...@@ -5030,7 +5031,7 @@ jQuery.Event.prototype = { ...@@ -5030,7 +5031,7 @@ jQuery.Event.prototype = {
this.isImmediatePropagationStopped = returnTrue; this.isImmediatePropagationStopped = returnTrue;
if ( e ) { if ( e && !this.isSimulated ) {
e.stopImmediatePropagation(); e.stopImmediatePropagation();
} }
...@@ -5961,19 +5962,6 @@ function getWidthOrHeight( elem, name, extra ) { ...@@ -5961,19 +5962,6 @@ function getWidthOrHeight( elem, name, extra ) {
styles = getStyles( elem ), styles = getStyles( elem ),
isBorderBox = jQuery.css( elem, "boxSizing", false, styles ) === "border-box"; isBorderBox = jQuery.css( elem, "boxSizing", false, styles ) === "border-box";
// Support: IE11 only
// In IE 11 fullscreen elements inside of an iframe have
// 100x too small dimensions (gh-1764).
if ( document.msFullscreenElement && window.top !== window ) {
// Support: IE11 only
// Running getBoundingClientRect on a disconnected node
// in IE throws an error.
if ( elem.getClientRects().length ) {
val = Math.round( elem.getBoundingClientRect()[ name ] * 100 );
}
}
// Some non-html elements return undefined for offsetWidth, so check for null/undefined // Some non-html elements return undefined for offsetWidth, so check for null/undefined
// svg - https://bugzilla.mozilla.org/show_bug.cgi?id=649285 // svg - https://bugzilla.mozilla.org/show_bug.cgi?id=649285
// MathML - https://bugzilla.mozilla.org/show_bug.cgi?id=491668 // MathML - https://bugzilla.mozilla.org/show_bug.cgi?id=491668
...@@ -7864,6 +7852,7 @@ jQuery.extend( jQuery.event, { ...@@ -7864,6 +7852,7 @@ jQuery.extend( jQuery.event, {
}, },
// Piggyback on a donor event to simulate a different one // Piggyback on a donor event to simulate a different one
// Used only for `focus(in | out)` events
simulate: function( type, elem, event ) { simulate: function( type, elem, event ) {
var e = jQuery.extend( var e = jQuery.extend(
new jQuery.Event(), new jQuery.Event(),
...@@ -7871,27 +7860,10 @@ jQuery.extend( jQuery.event, { ...@@ -7871,27 +7860,10 @@ jQuery.extend( jQuery.event, {
{ {
type: type, type: type,
isSimulated: true isSimulated: true
// Previously, `originalEvent: {}` was set here, so stopPropagation call
// would not be triggered on donor event, since in our own
// jQuery.event.stopPropagation function we had a check for existence of
// originalEvent.stopPropagation method, so, consequently it would be a noop.
//
// But now, this "simulate" function is used only for events
// for which stopPropagation() is noop, so there is no need for that anymore.
//
// For the 1.x branch though, guard for "click" and "submit"
// events is still used, but was moved to jQuery.event.stopPropagation function
// because `originalEvent` should point to the original event for the constancy
// with other events and for more focused logic
} }
); );
jQuery.event.trigger( e, null, elem ); jQuery.event.trigger( e, null, elem );
if ( e.isDefaultPrevented() ) {
event.preventDefault();
}
} }
} ); } );
......
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -341,10 +341,10 @@ html5shiv: ...@@ -341,10 +341,10 @@ html5shiv:
jquery: jquery:
remote: https://github.com/jquery/jquery remote: https://github.com/jquery/jquery
version: "2.2.3" version: "2.2.4"
license: license:
name: MIT name: MIT
url: https://github.com/jquery/jquery/blob/2.2.3/MIT-LICENSE.txt url: https://github.com/jquery/jquery/blob/2.2.4/LICENSE.txt
gpl-compatible: true gpl-compatible: true
js: js:
assets/vendor/jquery/jquery.min.js: { minified: true, weight: -20 } assets/vendor/jquery/jquery.min.js: { minified: true, weight: -20 }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment