Skip to content

Commit

Permalink
Issue #105: Upgrade jquery to 1.12.3.
Browse files Browse the repository at this point in the history
  • Loading branch information
mk23 committed Apr 15, 2016
1 parent 50e3c0f commit 4bb944e
Showing 1 changed file with 26 additions and 37 deletions.
63 changes: 26 additions & 37 deletions src/main/resources/assets/js/jquery.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* jQuery JavaScript Library v1.12.1
* jQuery JavaScript Library v1.12.3
* http://jquery.com/
*
* Includes Sizzle.js
Expand All @@ -9,7 +9,7 @@
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2016-02-22T19:07Z
* Date: 2016-04-05T19:16Z
*/

(function( global, factory ) {
Expand Down Expand Up @@ -65,7 +65,7 @@ var support = {};


var
version = "1.12.1",
version = "1.12.3",

// Define a local copy of jQuery
jQuery = function( selector, context ) {
Expand Down Expand Up @@ -8198,7 +8198,8 @@ jQuery.fn.delay = function( time, type ) {
} )();


var rreturn = /\r/g;
var rreturn = /\r/g,
rspaces = /[\x20\t\r\n\f]+/g;

jQuery.fn.extend( {
val: function( value ) {
Expand Down Expand Up @@ -8278,7 +8279,9 @@ jQuery.extend( {

// Support: IE10-11+
// option.text throws exceptions (#14686, #14858)
jQuery.trim( jQuery.text( elem ) );
// Strip and collapse whitespace
// https://html.spec.whatwg.org/#strip-and-collapse-whitespace
jQuery.trim( jQuery.text( elem ) ).replace( rspaces, " " );
}
},
select: {
Expand Down Expand Up @@ -8332,7 +8335,7 @@ jQuery.extend( {
while ( i-- ) {
option = options[ i ];

if ( jQuery.inArray( jQuery.valHooks.option.get( option ), values ) >= 0 ) {
if ( jQuery.inArray( jQuery.valHooks.option.get( option ), values ) > -1 ) {

// Support: IE6
// When new option element is added to select box we need to
Expand Down Expand Up @@ -8751,8 +8754,11 @@ if ( !support.hrefNormalized ) {
}

// Support: Safari, IE9+
// mis-reports the default selected property of an option
// Accessing the parent's selectedIndex property fixes it
// Accessing the selectedIndex property
// forces the browser to respect setting selected
// on the option
// The getter ensures a default option is selected
// when in an optgroup
if ( !support.optSelected ) {
jQuery.propHooks.selected = {
get: function( elem ) {
Expand All @@ -8767,6 +8773,16 @@ if ( !support.optSelected ) {
}
}
return null;
},
set: function( elem ) {
var parent = elem.parentNode;
if ( parent ) {
parent.selectedIndex;

if ( parent.parentNode ) {
parent.parentNode.selectedIndex;
}
}
}
};
}
Expand Down Expand Up @@ -10349,13 +10365,6 @@ function createActiveXHR() {



// Prevent auto-execution of scripts when no explicit dataType was provided (See gh-2432)
jQuery.ajaxPrefilter( function( s ) {
if ( s.crossDomain ) {
s.contents.script = false;
}
} );

// Install script dataType
jQuery.ajaxSetup( {
accepts: {
Expand Down Expand Up @@ -10542,21 +10551,6 @@ jQuery.ajaxPrefilter( "json jsonp", function( s, originalSettings, jqXHR ) {



// Support: Safari 8+
// In Safari 8 documents created via document.implementation.createHTMLDocument
// collapse sibling forms: the second one becomes a child of the first one.
// Because of that, this security measure has to be disabled in Safari 8.
// https://bugs.webkit.org/show_bug.cgi?id=137337
support.createHTMLDocument = ( function() {
if ( !document.implementation.createHTMLDocument ) {
return false;
}
var doc = document.implementation.createHTMLDocument( "" );
doc.body.innerHTML = "<form></form><form></form>";
return doc.body.childNodes.length === 2;
} )();


// data: string of html
// context (optional): If specified, the fragment will be created in this context,
// defaults to document
Expand All @@ -10569,12 +10563,7 @@ jQuery.parseHTML = function( data, context, keepScripts ) {
keepScripts = context;
context = false;
}

// document.implementation stops scripts or inline event handlers from
// being executed immediately
context = context || ( support.createHTMLDocument ?
document.implementation.createHTMLDocument( "" ) :
document );
context = context || document;

var parsed = rsingleTag.exec( data ),
scripts = !keepScripts && [];
Expand Down Expand Up @@ -10656,7 +10645,7 @@ jQuery.fn.load = function( url, params, callback ) {
// If it fails, this function gets "jqXHR", "status", "error"
} ).always( callback && function( jqXHR, status ) {
self.each( function() {
callback.apply( self, response || [ jqXHR.responseText, status, jqXHR ] );
callback.apply( this, response || [ jqXHR.responseText, status, jqXHR ] );
} );
} );
}
Expand Down

0 comments on commit 4bb944e

Please sign in to comment.