#888 ✓ staged
Scott Downe

Popcorn.js no longer needs to poll readystate

Reported by Scott Downe | January 5th, 2012 @ 03:18 PM | in 1.2 (closed)

Just doing some housecleaning in the code, and it hit me we don't need to poll ready state.

Instead, let's use a combination of readyState and events.

If ready state is >= 2, we're ready and run the function, else, setup an event for "loadeddata", which is equal to 2.

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Popcorn.js is an HTML5 video framework that lets you bring elements of the web into your videos.

Popcorn.js is a project of Web Made Movies, Mozilla's Open Video Lab.

Shared Ticket Bins