mirror of
https://github.com/jquery/jquery.git
synced 2025-01-10 18:24:24 +00:00
CSS: remove dead code in getWidthOrHeight
- getCSS already falls back to inline styles Ref gh-3561
This commit is contained in:
parent
c920ff6e32
commit
96533cd0e8
@ -134,11 +134,6 @@ function getWidthOrHeight( elem, name, extra ) {
|
||||
val = curCSS( elem, name, styles ),
|
||||
isBorderBox = jQuery.css( elem, "boxSizing", false, styles ) === "border-box";
|
||||
|
||||
// Fall back to uncomputed css if necessary
|
||||
if ( val < 0 || val == null ) {
|
||||
val = elem.style[ name ];
|
||||
}
|
||||
|
||||
// Computed unit is not pixels. Stop here and return.
|
||||
if ( rnumnonpx.test( val ) ) {
|
||||
return val;
|
||||
|
Loading…
Reference in New Issue
Block a user