CSS: remove dead code in getWidthOrHeight

- getCSS already falls back to inline styles

Ref gh-3561
This commit is contained in:
Timmy Willison 2017-03-13 10:53:03 -04:00
parent c920ff6e32
commit 96533cd0e8
No known key found for this signature in database
GPG Key ID: 5F0C8B73EF56CE6F

View File

@ -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;