Permalink
Browse files

CSS: remove dead code in getWidthOrHeight

- getCSS already falls back to inline styles

Ref gh-3561
  • Loading branch information...
timmywil committed Mar 13, 2017
1 parent c920ff6 commit 96533cd0e889a09ca71b90d74d71e590623cf26f
Showing with 0 additions and 5 deletions.
  1. +0 −5 src/css.js
View
@@ -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;

0 comments on commit 96533cd

Please sign in to comment.