Rearrange condition to be positive-first.
This commit is contained in:
parent
66c79f7d55
commit
311d1bbf8b
1 changed files with 3 additions and 3 deletions
|
@ -8,13 +8,13 @@ function Spinner(element)
|
||||||
clearTimeout(this.delayed_showing_timeout);
|
clearTimeout(this.delayed_showing_timeout);
|
||||||
this.delayed_showing_timeout = null;
|
this.delayed_showing_timeout = null;
|
||||||
|
|
||||||
if (! delay)
|
if (delay)
|
||||||
{
|
{
|
||||||
this.element.classList.remove("hidden");
|
this.delayed_showing_timeout = setTimeout(this.show, delay);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
this.delayed_showing_timeout = setTimeout(this.show, delay);
|
this.element.classList.remove("hidden");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue