aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/offset.js
diff options
context:
space:
mode:
authorTimmy Willison <timmywil@users.noreply.github.com>2024-06-06 09:56:44 -0400
committerGitHub <noreply@github.com>2024-06-06 09:56:44 -0400
commit74970524e5e164c72ec0415267b1e057280c9455 (patch)
treeb21a18d0e7f3bdab610cf3cc0a0bacc673ccc046 /test/unit/offset.js
parent46b9e4803ec3506e830ea6b49541ea29717ed460 (diff)
downloadjquery-74970524e5e164c72ec0415267b1e057280c9455.tar.gz
jquery-74970524e5e164c72ec0415267b1e057280c9455.zip
Build: improve specificity of eslint config; add ecma versions
Closes gh-5501
Diffstat (limited to 'test/unit/offset.js')
-rw-r--r--test/unit/offset.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/unit/offset.js b/test/unit/offset.js
index 50eee3dd5..a62ebde5b 100644
--- a/test/unit/offset.js
+++ b/test/unit/offset.js
@@ -4,7 +4,7 @@ if ( !includesModule( "offset" ) ) {
return;
}
-var supportsScroll, alwaysScrollable,
+var alwaysScrollable,
forceScroll = supportjQuery( "<div></div>" ).css( { width: 2000, height: 2000 } ),
checkSupport = function( assert ) {
@@ -14,7 +14,7 @@ var supportsScroll, alwaysScrollable,
// Append forceScroll to the body instead of #qunit-fixture because the latter is hidden
forceScroll.appendTo( "body" );
window.scrollTo( 200, 200 );
- supportsScroll = document.documentElement.scrollTop || document.body.scrollTop;
+ window.supportsScroll = document.documentElement.scrollTop || document.body.scrollTop;
forceScroll.detach();
// Support: iOS <=7 - 12+