aboutsummaryrefslogtreecommitdiffstats
path: root/src/css.js
diff options
context:
space:
mode:
authorMichał Gołębiowski <m.goleb@gmail.com>2014-03-04 23:49:09 +0100
committerMichał Gołębiowski <m.goleb@gmail.com>2014-03-10 19:25:25 +0100
commitb5050dc4895c0c5e132f1192cd9f8617267347cb (patch)
treed10251031144689b23146d63e386e25535547723 /src/css.js
parent4a6d1631eaae2c5b89dfe58728b46a8997daba48 (diff)
downloadjquery-b5050dc4895c0c5e132f1192cd9f8617267347cb.tar.gz
jquery-b5050dc4895c0c5e132f1192cd9f8617267347cb.zip
Support: Simplify the box-sizing test
Don't require body in the support.boxSizing test.
Diffstat (limited to 'src/css.js')
-rw-r--r--src/css.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/css.js b/src/css.js
index afebceb12..dcca4e953 100644
--- a/src/css.js
+++ b/src/css.js
@@ -171,7 +171,7 @@ function getWidthOrHeight( elem, name, extra ) {
var valueIsBorderBox = true,
val = name === "width" ? elem.offsetWidth : elem.offsetHeight,
styles = getStyles( elem ),
- isBorderBox = support.boxSizing() && jQuery.css( elem, "boxSizing", false, styles ) === "border-box";
+ isBorderBox = support.boxSizing && jQuery.css( elem, "boxSizing", false, styles ) === "border-box";
// some non-html elements return undefined for offsetWidth, so check for null/undefined
// svg - https://bugzilla.mozilla.org/show_bug.cgi?id=649285
@@ -366,7 +366,7 @@ jQuery.each([ "height", "width" ], function( i, name ) {
elem,
name,
extra,
- support.boxSizing() && jQuery.css( elem, "boxSizing", false, styles ) === "border-box",
+ support.boxSizing && jQuery.css( elem, "boxSizing", false, styles ) === "border-box",
styles
) : 0
);