Permalink
Browse files

Fix Popcorn.ready constructor firing before DOMContentLoaded [#949]

  • Loading branch information...
1 parent 1e7fba6 commit eb684e39ef0af0f9c688c7db9209d62deaa03d43 @jbuck jbuck committed Mar 6, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 popcorn.js
  2. +1 −1 test/ready.html
View
@@ -160,7 +160,7 @@
if ( typeof entity === "function" ) {
// If document ready has already fired
- if ( document.readyState === "interactive" || document.readyState === "complete" ) {
+ if ( document.readyState === "complete" ) {
entity( document, Popcorn );
View
@@ -88,7 +88,7 @@
<body>
<h3>Popcorn(/* DOM Ready */)<h3>
- <video id='video'style="display:none"
+ <video id='video' style="display:none"
controls
poster="poster.png">

0 comments on commit eb684e3

Please sign in to comment.