aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimmy Willison <4timmywil@gmail.com>2017-03-13 10:53:03 -0400
committerTimmy Willison <4timmywil@gmail.com>2017-03-13 13:33:05 -0400
commit96533cd0e889a09ca71b90d74d71e590623cf26f (patch)
tree245def874351ffac0fa36b231efe9b828d744245
parentc920ff6e322baddbb2bd04125c5577244dcb0320 (diff)
downloadjquery-96533cd0e889a09ca71b90d74d71e590623cf26f.tar.gz
jquery-96533cd0e889a09ca71b90d74d71e590623cf26f.zip
CSS: remove dead code in getWidthOrHeight
- getCSS already falls back to inline styles Ref gh-3561
-rw-r--r--src/css.js5
1 files changed, 0 insertions, 5 deletions
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;