🌐 AI搜索 & 代理 主页
Skip to content

Commit 96533cd

Browse files
committed
CSS: remove dead code in getWidthOrHeight
- getCSS already falls back to inline styles Ref gh-3561
1 parent c920ff6 commit 96533cd

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/css.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -134,11 +134,6 @@ function getWidthOrHeight( elem, name, extra ) {
134134
val = curCSS( elem, name, styles ),
135135
isBorderBox = jQuery.css( elem, "boxSizing", false, styles ) === "border-box";
136136

137-
// Fall back to uncomputed css if necessary
138-
if ( val < 0 || val == null ) {
139-
val = elem.style[ name ];
140-
}
141-
142137
// Computed unit is not pixels. Stop here and return.
143138
if ( rnumnonpx.test( val ) ) {
144139
return val;

0 commit comments

Comments
 (0)