mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-24 01:57:53 +01:00
Update to jQuery 1.10.1. fixes #24426.
git-svn-id: http://core.svn.wordpress.org/trunk@24395 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
28ab169d37
commit
1c84a1fe92
33
wp-includes/js/jquery/jquery.js
vendored
33
wp-includes/js/jquery/jquery.js
vendored
@ -1,5 +1,5 @@
|
|||||||
/*!
|
/*!
|
||||||
* jQuery JavaScript Library v1.10.0
|
* jQuery JavaScript Library v1.10.1
|
||||||
* http://jquery.com/
|
* http://jquery.com/
|
||||||
*
|
*
|
||||||
* Includes Sizzle.js
|
* Includes Sizzle.js
|
||||||
@ -9,7 +9,7 @@
|
|||||||
* Released under the MIT license
|
* Released under the MIT license
|
||||||
* http://jquery.org/license
|
* http://jquery.org/license
|
||||||
*
|
*
|
||||||
* Date: 2013-05-24T18:39Z
|
* Date: 2013-05-30T21:49Z
|
||||||
*/
|
*/
|
||||||
(function( window, undefined ) {
|
(function( window, undefined ) {
|
||||||
|
|
||||||
@ -46,7 +46,7 @@ var
|
|||||||
// List of deleted data cache ids, so we can reuse them
|
// List of deleted data cache ids, so we can reuse them
|
||||||
core_deletedIds = [],
|
core_deletedIds = [],
|
||||||
|
|
||||||
core_version = "1.10.0",
|
core_version = "1.10.1",
|
||||||
|
|
||||||
// Save a reference to some core methods
|
// Save a reference to some core methods
|
||||||
core_concat = core_deletedIds.concat,
|
core_concat = core_deletedIds.concat,
|
||||||
@ -1007,7 +1007,7 @@ rootjQuery = jQuery(document);
|
|||||||
* Released under the MIT license
|
* Released under the MIT license
|
||||||
* http://jquery.org/license
|
* http://jquery.org/license
|
||||||
*
|
*
|
||||||
* Date: 2013-05-15
|
* Date: 2013-05-27
|
||||||
*/
|
*/
|
||||||
(function( window, undefined ) {
|
(function( window, undefined ) {
|
||||||
|
|
||||||
@ -1492,7 +1492,8 @@ support = Sizzle.support = {};
|
|||||||
* @returns {Object} Returns the current document
|
* @returns {Object} Returns the current document
|
||||||
*/
|
*/
|
||||||
setDocument = Sizzle.setDocument = function( node ) {
|
setDocument = Sizzle.setDocument = function( node ) {
|
||||||
var doc = node ? node.ownerDocument || node : preferredDoc;
|
var doc = node ? node.ownerDocument || node : preferredDoc,
|
||||||
|
parent = doc.parentWindow;
|
||||||
|
|
||||||
// If no document and documentElement is available, return
|
// If no document and documentElement is available, return
|
||||||
if ( doc === document || doc.nodeType !== 9 || !doc.documentElement ) {
|
if ( doc === document || doc.nodeType !== 9 || !doc.documentElement ) {
|
||||||
@ -1506,6 +1507,15 @@ setDocument = Sizzle.setDocument = function( node ) {
|
|||||||
// Support tests
|
// Support tests
|
||||||
documentIsHTML = !isXML( doc );
|
documentIsHTML = !isXML( doc );
|
||||||
|
|
||||||
|
// Support: IE>8
|
||||||
|
// If iframe document is assigned to "document" variable and if iframe has been reloaded,
|
||||||
|
// IE will throw "permission denied" error when accessing "document" variable, see jQuery #13936
|
||||||
|
if ( parent && parent.frameElement ) {
|
||||||
|
parent.attachEvent( "onbeforeunload", function() {
|
||||||
|
setDocument();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
/* Attributes
|
/* Attributes
|
||||||
---------------------------------------------------------------------- */
|
---------------------------------------------------------------------- */
|
||||||
|
|
||||||
@ -3951,7 +3961,6 @@ jQuery.extend({
|
|||||||
startLength--;
|
startLength--;
|
||||||
}
|
}
|
||||||
|
|
||||||
hooks.cur = fn;
|
|
||||||
if ( fn ) {
|
if ( fn ) {
|
||||||
|
|
||||||
// Add a progress sentinel to prevent the fx queue from being
|
// Add a progress sentinel to prevent the fx queue from being
|
||||||
@ -8864,8 +8873,8 @@ var fxNow, timerId,
|
|||||||
|
|
||||||
// Update tween properties
|
// Update tween properties
|
||||||
if ( parts ) {
|
if ( parts ) {
|
||||||
|
start = tween.start = +start || +target || 0;
|
||||||
tween.unit = unit;
|
tween.unit = unit;
|
||||||
tween.start = +start || +target || 0;
|
|
||||||
// If a +=/-= token was provided, we're doing a relative animation
|
// If a +=/-= token was provided, we're doing a relative animation
|
||||||
tween.end = parts[ 1 ] ?
|
tween.end = parts[ 1 ] ?
|
||||||
start + ( parts[ 1 ] + 1 ) * parts[ 2 ] :
|
start + ( parts[ 1 ] + 1 ) * parts[ 2 ] :
|
||||||
@ -9312,9 +9321,7 @@ jQuery.fn.extend({
|
|||||||
doAnimation = function() {
|
doAnimation = function() {
|
||||||
// Operate on a copy of prop so per-property easing won't be lost
|
// Operate on a copy of prop so per-property easing won't be lost
|
||||||
var anim = Animation( this, jQuery.extend( {}, prop ), optall );
|
var anim = Animation( this, jQuery.extend( {}, prop ), optall );
|
||||||
doAnimation.finish = function() {
|
|
||||||
anim.stop( true );
|
|
||||||
};
|
|
||||||
// Empty animations, or finishing resolves immediately
|
// Empty animations, or finishing resolves immediately
|
||||||
if ( empty || jQuery._data( this, "finish" ) ) {
|
if ( empty || jQuery._data( this, "finish" ) ) {
|
||||||
anim.stop( true );
|
anim.stop( true );
|
||||||
@ -9394,8 +9401,8 @@ jQuery.fn.extend({
|
|||||||
// empty the queue first
|
// empty the queue first
|
||||||
jQuery.queue( this, type, [] );
|
jQuery.queue( this, type, [] );
|
||||||
|
|
||||||
if ( hooks && hooks.cur && hooks.cur.finish ) {
|
if ( hooks && hooks.stop ) {
|
||||||
hooks.cur.finish.call( this );
|
hooks.stop.call( this, true );
|
||||||
}
|
}
|
||||||
|
|
||||||
// look for any active animations, and finish them
|
// look for any active animations, and finish them
|
||||||
@ -9775,7 +9782,7 @@ jQuery.fn.size = function() {
|
|||||||
jQuery.fn.andSelf = jQuery.fn.addBack;
|
jQuery.fn.andSelf = jQuery.fn.addBack;
|
||||||
|
|
||||||
// })();
|
// })();
|
||||||
if ( typeof module === "object" && typeof module.exports === "object" ) {
|
if ( typeof module === "object" && module && typeof module.exports === "object" ) {
|
||||||
// Expose jQuery as module.exports in loaders that implement the Node
|
// Expose jQuery as module.exports in loaders that implement the Node
|
||||||
// module pattern (including browserify). Do not create the global, since
|
// module pattern (including browserify). Do not create the global, since
|
||||||
// the user will be storing it themselves locally, and globals are frowned
|
// the user will be storing it themselves locally, and globals are frowned
|
||||||
|
@ -132,8 +132,8 @@ function wp_default_scripts( &$scripts ) {
|
|||||||
$scripts->add( 'cropper', '/wp-includes/js/crop/cropper.js', array('scriptaculous-dragdrop') );
|
$scripts->add( 'cropper', '/wp-includes/js/crop/cropper.js', array('scriptaculous-dragdrop') );
|
||||||
|
|
||||||
// jQuery
|
// jQuery
|
||||||
$scripts->add( 'jquery', false, array( 'jquery-core', 'jquery-migrate' ), '1.10.0' );
|
$scripts->add( 'jquery', false, array( 'jquery-core', 'jquery-migrate' ), '1.10.1' );
|
||||||
$scripts->add( 'jquery-core', '/wp-includes/js/jquery/jquery.js', array(), '1.10.0' );
|
$scripts->add( 'jquery-core', '/wp-includes/js/jquery/jquery.js', array(), '1.10.1' );
|
||||||
$scripts->add( 'jquery-migrate', '/wp-includes/js/jquery/jquery-migrate.js', array(), '1.2.1' );
|
$scripts->add( 'jquery-migrate', '/wp-includes/js/jquery/jquery-migrate.js', array(), '1.2.1' );
|
||||||
|
|
||||||
// full jQuery UI
|
// full jQuery UI
|
||||||
|
Loading…
Reference in New Issue
Block a user