From: Timmy Willison <4timmywil@gmail.com> Date: Mon, 13 Mar 2017 14:53:03 +0000 (-0400) Subject: CSS: remove dead code in getWidthOrHeight X-Git-Tag: 3.2.0~5 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=96533cd0e889a09ca71b90d74d71e590623cf26f;p=jquery.git CSS: remove dead code in getWidthOrHeight - getCSS already falls back to inline styles Ref gh-3561 --- diff --git a/src/css.js b/src/css.js index 3c5784aa2..2ce343300 100644 --- a/src/css.js +++ b/src/css.js @@ -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;