]> source.dussan.org Git - jquery.git/commitdiff
Update comments about window.getComputedStyle in both locations.
authorRick Waldron <waldron.rick@gmail.com>
Sat, 11 Aug 2012 20:30:46 +0000 (16:30 -0400)
committerRick Waldron <waldron.rick@gmail.com>
Sat, 11 Aug 2012 20:30:46 +0000 (16:30 -0400)
src/css.js
src/support.js

index 518513a2b38d6523d059d72a5e8338563d079784..22de5ba3049b90aee43ff05238cb8216a9544fed 100644 (file)
@@ -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 ) {
index e4a8b7c83cfaa83732413132083c4c982c249db4..04f9bfb0f6f9884be28d5f3dc21eb783b8d766e7 100644 (file)
@@ -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";