Skip to content

Commit

Permalink
Refactor close delay timeout update to remove multi-assignment
Browse files Browse the repository at this point in the history
This is a logic cleanup to make this code pass linting with the
ESLint no-multi-assign rule enabled.
  • Loading branch information
stevenbenner committed Feb 18, 2024
1 parent 15f1de6 commit c7ae3aa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/displaycontroller.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ function DisplayController(element, options, tipController) {
function closeTooltip(disableDelay) {
// if this instance already has a close delay in progress then halt it
if (myCloseDelay) {
myCloseDelay = session.closeDelayTimeout = clearTimeout(myCloseDelay);
session.closeDelayTimeout = clearTimeout(myCloseDelay);
myCloseDelay = session.closeDelayTimeout;
session.delayInProgress = false;
}
cancelTimer();
Expand Down

0 comments on commit c7ae3aa

Please sign in to comment.