mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Cleanup spacing in css.js. Fixes #10601
This commit is contained in:
parent
9ea21faf8f
commit
4fb7202e0a
@ -307,7 +307,7 @@ if ( document.documentElement.currentStyle ) {
|
|||||||
if ( rsLeft ) {
|
if ( rsLeft ) {
|
||||||
elem.runtimeStyle.left = elem.currentStyle.left;
|
elem.runtimeStyle.left = elem.currentStyle.left;
|
||||||
}
|
}
|
||||||
style.left = name === "fontSize" ? "1em" : (ret || 0);
|
style.left = name === "fontSize" ? "1em" : ( ret || 0 );
|
||||||
ret = style.pixelLeft + "px";
|
ret = style.pixelLeft + "px";
|
||||||
|
|
||||||
// Revert the changed values
|
// Revert the changed values
|
||||||
@ -375,7 +375,7 @@ if ( jQuery.expr && jQuery.expr.filters ) {
|
|||||||
var width = elem.offsetWidth,
|
var width = elem.offsetWidth,
|
||||||
height = elem.offsetHeight;
|
height = elem.offsetHeight;
|
||||||
|
|
||||||
return (width === 0 && height === 0) || (!jQuery.support.reliableHiddenOffsets && ((elem.style && elem.style.display) || jQuery.css( elem, "display" )) === "none");
|
return ( width === 0 && height === 0 ) || (!jQuery.support.reliableHiddenOffsets && ((elem.style && elem.style.display) || jQuery.css( elem, "display" )) === "none");
|
||||||
};
|
};
|
||||||
|
|
||||||
jQuery.expr.filters.visible = function( elem ) {
|
jQuery.expr.filters.visible = function( elem ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user