jQuery 1.4.4rc2. see #15227
git-svn-id: http://svn.automattic.com/wordpress/trunk@16186 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
3c1a13935e
commit
1af4d93e6d
|
@ -1,5 +1,5 @@
|
||||||
/*!
|
/*!
|
||||||
* jQuery JavaScript Library vPulled Live From Git
|
* jQuery JavaScript Library v1.4.4rc2
|
||||||
* http://jquery.com/
|
* http://jquery.com/
|
||||||
*
|
*
|
||||||
* Copyright 2010, John Resig
|
* Copyright 2010, John Resig
|
||||||
|
@ -11,7 +11,7 @@
|
||||||
* Copyright 2010, The Dojo Foundation
|
* Copyright 2010, The Dojo Foundation
|
||||||
* Released under the MIT, BSD, and GPL Licenses.
|
* Released under the MIT, BSD, and GPL Licenses.
|
||||||
*
|
*
|
||||||
* Date: Wed Oct 27 00:55:02 2010
|
* Date: Wed Nov 3 15:46:31 2010 -0400
|
||||||
*/
|
*/
|
||||||
(function( window, undefined ) {
|
(function( window, undefined ) {
|
||||||
|
|
||||||
|
@ -211,7 +211,7 @@ jQuery.fn = jQuery.prototype = {
|
||||||
selector: "",
|
selector: "",
|
||||||
|
|
||||||
// The current version of jQuery being used
|
// The current version of jQuery being used
|
||||||
jquery: "Pulled Live From Git",
|
jquery: "1.4.4rc2",
|
||||||
|
|
||||||
// The default length of a jQuery object is 0
|
// The default length of a jQuery object is 0
|
||||||
length: 0,
|
length: 0,
|
||||||
|
@ -3915,7 +3915,7 @@ Sizzle.getText = function( elems ) {
|
||||||
|
|
||||||
if ( document.querySelectorAll ) {
|
if ( document.querySelectorAll ) {
|
||||||
(function(){
|
(function(){
|
||||||
var oldSizzle = Sizzle, div = document.createElement("div");
|
var oldSizzle = Sizzle, div = document.createElement("div"), id = "__sizzle__";
|
||||||
div.innerHTML = "<p class='TEST'></p>";
|
div.innerHTML = "<p class='TEST'></p>";
|
||||||
|
|
||||||
// Safari can't handle uppercase or unicode characters when
|
// Safari can't handle uppercase or unicode characters when
|
||||||
|
@ -3940,17 +3940,18 @@ if ( document.querySelectorAll ) {
|
||||||
// and working up from there (Thanks to Andrew Dupont for the technique)
|
// and working up from there (Thanks to Andrew Dupont for the technique)
|
||||||
// IE 8 doesn't work on object elements
|
// IE 8 doesn't work on object elements
|
||||||
} else if ( context.nodeType === 1 && context.nodeName.toLowerCase() !== "object" ) {
|
} else if ( context.nodeType === 1 && context.nodeName.toLowerCase() !== "object" ) {
|
||||||
var old = context.getAttribute( "id" ), id = context.id = "__sizzle__";
|
var old = context.getAttribute( "id" ), nid = old || id;
|
||||||
|
|
||||||
|
if ( !old ) {
|
||||||
|
context.setAttribute( "id", nid );
|
||||||
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
return makeArray( context.querySelectorAll( "#" + id + " " + query ), extra );
|
return makeArray( context.querySelectorAll( "#" + nid + " " + query ), extra );
|
||||||
|
|
||||||
} catch(pseudoError) {
|
} catch(pseudoError) {
|
||||||
} finally {
|
} finally {
|
||||||
if ( old ) {
|
if ( !old ) {
|
||||||
context.id = old;
|
|
||||||
|
|
||||||
} else {
|
|
||||||
context.removeAttribute( "id" );
|
context.removeAttribute( "id" );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -5055,8 +5056,8 @@ var ralpha = /alpha\([^)]*\)/i,
|
||||||
cssHeight = [ "Top", "Bottom" ],
|
cssHeight = [ "Top", "Bottom" ],
|
||||||
curCSS,
|
curCSS,
|
||||||
|
|
||||||
// cache check for defaultView.getComputedStyle
|
getComputedStyle,
|
||||||
getComputedStyle = document.defaultView && document.defaultView.getComputedStyle,
|
currentStyle,
|
||||||
|
|
||||||
fcamelCase = function( all, letter ) {
|
fcamelCase = function( all, letter ) {
|
||||||
return letter.toUpperCase();
|
return letter.toUpperCase();
|
||||||
|
@ -5215,13 +5216,18 @@ jQuery.each(["height", "width"], function( i, name ) {
|
||||||
if ( val <= 0 ) {
|
if ( val <= 0 ) {
|
||||||
val = curCSS( elem, name, name );
|
val = curCSS( elem, name, name );
|
||||||
|
|
||||||
|
if ( val === "0px" && currentStyle ) {
|
||||||
|
val = currentStyle( elem, name, name );
|
||||||
|
}
|
||||||
|
|
||||||
if ( val != null ) {
|
if ( val != null ) {
|
||||||
return val === "auto" ? "" : val;
|
return val;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( val < 0 || val == null ) {
|
if ( val < 0 || val == null ) {
|
||||||
return elem.style[ name ];
|
val = elem.style[ name ];
|
||||||
|
return val === "" ? "auto" : val;
|
||||||
}
|
}
|
||||||
|
|
||||||
return typeof val === "string" ? val : val + "px";
|
return typeof val === "string" ? val : val + "px";
|
||||||
|
@ -5273,8 +5279,8 @@ if ( !jQuery.support.opacity ) {
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( getComputedStyle ) {
|
if ( document.defaultView && document.defaultView.getComputedStyle ) {
|
||||||
curCSS = function( elem, newName, name ) {
|
getComputedStyle = function( elem, newName, name ) {
|
||||||
var ret, defaultView, computedStyle;
|
var ret, defaultView, computedStyle;
|
||||||
|
|
||||||
name = name.replace( rupper, "-$1" ).toLowerCase();
|
name = name.replace( rupper, "-$1" ).toLowerCase();
|
||||||
|
@ -5290,11 +5296,12 @@ if ( getComputedStyle ) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return ret;
|
return ret === "" ? "auto" : ret;
|
||||||
};
|
};
|
||||||
|
}
|
||||||
|
|
||||||
} else if ( document.documentElement.currentStyle ) {
|
if ( document.documentElement.currentStyle ) {
|
||||||
curCSS = function( elem, name ) {
|
currentStyle = function( elem, name ) {
|
||||||
var left, rsLeft, ret = elem.currentStyle && elem.currentStyle[ name ], style = elem.style;
|
var left, rsLeft, ret = elem.currentStyle && elem.currentStyle[ name ], style = elem.style;
|
||||||
|
|
||||||
// From the awesome hack by Dean Edwards
|
// From the awesome hack by Dean Edwards
|
||||||
|
@ -5317,10 +5324,12 @@ if ( getComputedStyle ) {
|
||||||
elem.runtimeStyle.left = rsLeft;
|
elem.runtimeStyle.left = rsLeft;
|
||||||
}
|
}
|
||||||
|
|
||||||
return ret;
|
return ret === "" ? "auto" : ret;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
curCSS = getComputedStyle || currentStyle;
|
||||||
|
|
||||||
function getWH( elem, name, extra ) {
|
function getWH( elem, name, extra ) {
|
||||||
var which = name === "width" ? cssWidth : cssHeight,
|
var which = name === "width" ? cssWidth : cssHeight,
|
||||||
val = name === "width" ? elem.offsetWidth : elem.offsetHeight;
|
val = name === "width" ? elem.offsetWidth : elem.offsetHeight;
|
||||||
|
@ -6105,7 +6114,7 @@ jQuery.fn.extend({
|
||||||
// Reset the inline display of this element to learn if it is
|
// Reset the inline display of this element to learn if it is
|
||||||
// being hidden by cascaded rules or not
|
// being hidden by cascaded rules or not
|
||||||
if ( !jQuery.data(elem, "olddisplay") && display === "none" ) {
|
if ( !jQuery.data(elem, "olddisplay") && display === "none" ) {
|
||||||
elem.style.display = "";
|
display = elem.style.display = "";
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set elements which have been overridden with display: none
|
// Set elements which have been overridden with display: none
|
||||||
|
@ -6189,7 +6198,7 @@ jQuery.fn.extend({
|
||||||
}
|
}
|
||||||
|
|
||||||
return this[ optall.queue === false ? "each" : "queue" ](function() {
|
return this[ optall.queue === false ? "each" : "queue" ](function() {
|
||||||
// XXX ‘this’ does not always have a nodeName when running the
|
// XXX 'this' does not always have a nodeName when running the
|
||||||
// test suite
|
// test suite
|
||||||
|
|
||||||
var opt = jQuery.extend({}, optall), p,
|
var opt = jQuery.extend({}, optall), p,
|
||||||
|
|
|
@ -117,7 +117,7 @@ function wp_default_scripts( &$scripts ) {
|
||||||
// not used in core, replaced by Jcrop.js
|
// not used in core, replaced by Jcrop.js
|
||||||
$scripts->add( 'cropper', '/wp-includes/js/crop/cropper.js', array('scriptaculous-dragdrop'), '20070118');
|
$scripts->add( 'cropper', '/wp-includes/js/crop/cropper.js', array('scriptaculous-dragdrop'), '20070118');
|
||||||
|
|
||||||
$scripts->add( 'jquery', '/wp-includes/js/jquery/jquery.js', false, '1.4.3');
|
$scripts->add( 'jquery', '/wp-includes/js/jquery/jquery.js', false, '1.4.4rc2');
|
||||||
|
|
||||||
$scripts->add( 'jquery-ui-core', '/wp-includes/js/jquery/ui.core.js', array('jquery'), '1.8.6' );
|
$scripts->add( 'jquery-ui-core', '/wp-includes/js/jquery/ui.core.js', array('jquery'), '1.8.6' );
|
||||||
$scripts->add_data( 'jquery-ui-core', 'group', 1 );
|
$scripts->add_data( 'jquery-ui-core', 'group', 1 );
|
||||||
|
|
Loading…
Reference in New Issue