aboutsummaryrefslogtreecommitdiffstats
path: root/src/support.js
diff options
context:
space:
mode:
authorRick Waldron <waldron.rick@gmail.com>2012-08-11 16:30:46 -0400
committerRick Waldron <waldron.rick@gmail.com>2012-08-11 16:30:46 -0400
commitdc3f7d3868e00fb318069b6f87dfc1fc4d10e56f (patch)
tree11b5507eb41a9e979a3f5ec251343621193778d0 /src/support.js
parent3722aef8be5d31a7dbf3de6998cdf249081f028c (diff)
downloadjquery-dc3f7d3868e00fb318069b6f87dfc1fc4d10e56f.tar.gz
jquery-dc3f7d3868e00fb318069b6f87dfc1fc4d10e56f.zip
Update comments about window.getComputedStyle in both locations.
Diffstat (limited to 'src/support.js')
-rw-r--r--src/support.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/support.js b/src/support.js
index e4a8b7c83..04f9bfb0f 100644
--- a/src/support.js
+++ b/src/support.js
@@ -214,10 +214,8 @@ jQuery.support = (function() {
support.boxSizing = ( div.offsetWidth === 4 );
support.doesNotIncludeMarginInBodyOffset = ( body.offsetTop !== 1 );
- // NOTE: To any future maintainer, window.getComputedStyle was used here
- // instead of getComputedStyle because it gave a better gzip size.
- // The difference between window.getComputedStyle and getComputedStyle is
- // 7 bytes
+ // NOTE: To any future maintainer, we've window.getComputedStyle
+ // because jsdom on node.js will break without it.
if ( window.getComputedStyle ) {
support.pixelPosition = ( window.getComputedStyle( div, null ) || {} ).top !== "1%";
support.boxSizingReliable = ( window.getComputedStyle( div, null ) || { width: "4px" } ).width === "4px";