Rearrange condition to be positive-first.

This commit is contained in:
voussoir 2019-06-15 14:24:50 -07:00
parent 66c79f7d55
commit 311d1bbf8b

View file

@ -8,13 +8,13 @@ function Spinner(element)
clearTimeout(this.delayed_showing_timeout);
this.delayed_showing_timeout = null;
if (! delay)
if (delay)
{
this.element.classList.remove("hidden");
this.delayed_showing_timeout = setTimeout(this.show, delay);
}
else
{
this.delayed_showing_timeout = setTimeout(this.show, delay);
this.element.classList.remove("hidden");
}
}