Loopy for YouTube

By CDM Last update Oct 4, 2008 — Installed 113,542 times.

Why initLoopy() called three times?

in
Subscribe to Why initLoopy() called three times? 1 post, 1 voice

Piyush Soni Scriptwright
FirefoxWindows

First of all it's a great script! I always needed something like this. Though I understand everything else in the script, I don't understand why do we call initLoopy() three times through the setTimeout() method - when it doesn't seem to do anything new in the second or third call. (Assigning the player and addEventListener() are called the first time only.) I tried removing the ones with argument 'false' and it still works fine.

Was just confused so thought of asking.

Thanks a lot!

-Piyush

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel