Move delayed_showing_timeout assignment where needed.

This commit is contained in:
voussoir 2022-03-08 16:42:56 -08:00
parent 0fd18221b1
commit fc582df257
No known key found for this signature in database
GPG key ID: 5F7554F8C26DACCB

View file

@ -18,7 +18,6 @@ function Spinner(element)
this.show = function(delay)
{
clearTimeout(this.delayed_showing_timeout);
this.delayed_showing_timeout = null;
if (delay)
{
@ -26,6 +25,7 @@ function Spinner(element)
}
else
{
this.delayed_showing_timeout = null;
this.element.classList.remove("hidden");
}
}