From dc3f7d3868e00fb318069b6f87dfc1fc4d10e56f Mon Sep 17 00:00:00 2001 From: Rick Waldron Date: Sat, 11 Aug 2012 16:30:46 -0400 Subject: [PATCH] Update comments about window.getComputedStyle in both locations. --- src/css.js | 2 +- src/support.js | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/css.js b/src/css.js index 518513a2b..22de5ba30 100644 --- a/src/css.js +++ b/src/css.js @@ -278,7 +278,7 @@ jQuery.extend({ } }); -// NOTE: To any future maintainer, we've used both window.getComputedStyle +// NOTE: To any future maintainer, we've window.getComputedStyle // because jsdom on node.js will break without it. if ( window.getComputedStyle ) { curCSS = function( elem, name ) { 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"; -- 2.39.5