File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -278,7 +278,7 @@ jQuery.extend({
278
278
}
279
279
} ) ;
280
280
281
- // NOTE: To any future maintainer, we've used both window.getComputedStyle
281
+ // NOTE: To any future maintainer, we've window.getComputedStyle
282
282
// because jsdom on node.js will break without it.
283
283
if ( window . getComputedStyle ) {
284
284
curCSS = function ( elem , name ) {
Original file line number Diff line number Diff line change @@ -214,10 +214,8 @@ jQuery.support = (function() {
214
214
support . boxSizing = ( div . offsetWidth === 4 ) ;
215
215
support . doesNotIncludeMarginInBodyOffset = ( body . offsetTop !== 1 ) ;
216
216
217
- // NOTE: To any future maintainer, window.getComputedStyle was used here
218
- // instead of getComputedStyle because it gave a better gzip size.
219
- // The difference between window.getComputedStyle and getComputedStyle is
220
- // 7 bytes
217
+ // NOTE: To any future maintainer, we've window.getComputedStyle
218
+ // because jsdom on node.js will break without it.
221
219
if ( window . getComputedStyle ) {
222
220
support . pixelPosition = ( window . getComputedStyle ( div , null ) || { } ) . top !== "1%" ;
223
221
support . boxSizingReliable = ( window . getComputedStyle ( div , null ) || { width : "4px" } ) . width === "4px" ;
You can’t perform that action at this time.
0 commit comments