Skip to content

Commit a0ce604

Browse files
committed
lint
1 parent ea6f89d commit a0ce604

File tree

1 file changed

+4
-4
lines changed
  • packages/svelte/src/reactivity/window

1 file changed

+4
-4
lines changed

packages/svelte/src/reactivity/window/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,12 @@ export const outerHeight = new ReactiveValue(
5858
export const screenLeft = new ReactiveValue(
5959
BROWSER ? () => window.screenLeft : () => undefined,
6060
(update) => {
61-
let screenLeft = window.screenLeft;
61+
let value = window.screenLeft;
6262

6363
let frame = requestAnimationFrame(function check() {
6464
frame = requestAnimationFrame(check);
6565

66-
if (screenLeft !== (screenLeft = window.screenLeft)) {
66+
if (value !== (value = window.screenLeft)) {
6767
update();
6868
}
6969
});
@@ -80,12 +80,12 @@ export const screenLeft = new ReactiveValue(
8080
export const screenTop = new ReactiveValue(
8181
BROWSER ? () => window.screenTop : () => undefined,
8282
(update) => {
83-
let screenTop = window.screenTop;
83+
let value = window.screenTop;
8484

8585
let frame = requestAnimationFrame(function check() {
8686
frame = requestAnimationFrame(check);
8787

88-
if (screenTop !== (screenTop = window.screenTop)) {
88+
if (value !== (value = window.screenTop)) {
8989
update();
9090
}
9191
});

0 commit comments

Comments
 (0)