Skip to content

Commit

Permalink
Remove redundant call to clearTimeout
Browse files Browse the repository at this point in the history
I was working on mui/material-ui#16976, by luck, the concern was already taking care of in WICG#167. In the process of applying the diff, I have found this strange call to clearTimeout—I believe it's not needed.
  • Loading branch information
oliviertassinari authored Aug 13, 2019
1 parent 8b95f58 commit 56652eb
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/focus-visible.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,6 @@ function applyFocusVisiblePolyfill(scope) {
window.clearTimeout(hadFocusVisibleRecentlyTimeout);
hadFocusVisibleRecentlyTimeout = window.setTimeout(function() {
hadFocusVisibleRecently = false;
window.clearTimeout(hadFocusVisibleRecentlyTimeout);
}, 100);
removeFocusVisibleClass(e.target);
}
Expand Down

0 comments on commit 56652eb

Please sign in to comment.