Quote:
Originally Posted by Angel_Light
Here's a vid of what it does.
|
I can almost see the video! So close....
Anyhoo, the
else if () isn't really necessary...it's a boolean condition. You could have also done
if (this.on) {} else {}. Also, do
setTimer(0) in the else part and add
setTimer(0.05); to save the timeout from running when it's not needed.