From: David Seifried Date: Wed, 7 Sep 2011 21:55:44 +0000 (-0400) Subject: Removed some hacky code adding 0.25 seconds to the exec start time X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=281bd2de31d88f269daed8f2f26342c4ff4236de;p=popcorn-js.git Removed some hacky code adding 0.25 seconds to the exec start time --- diff --git a/popcorn.js b/popcorn.js index 87aeeb3..9f6b091 100644 --- a/popcorn.js +++ b/popcorn.js @@ -410,7 +410,7 @@ // Creating a one second track event with an empty end Popcorn.addTrackEvent( this, { - start: time + 0.25, + start: time, end: time + 1, _running: false, _natives: { diff --git a/test/popcorn.unit.js b/test/popcorn.unit.js index a6ca948..1440522 100644 --- a/test/popcorn.unit.js +++ b/test/popcorn.unit.js @@ -1890,6 +1890,8 @@ test( "Popcorn Compose", function () { equals( test.two.setup, 3, "three compose two setup" ); plus(); + popped.currentTime(0).pause(); + popped.exec( 0, function() { equals( test.one.running, 1, "one compose running" ); plus();