From: rwldrn Date: Sat, 4 Dec 2010 21:10:59 +0000 (-0500) Subject: Applies to #157 X-Git-Tag: v0.2~71 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=58843d3f825e9f9d2a88da8d8b87a264b4debb1a;p=popcorn-js.git Applies to #157 --- diff --git a/popcorn.js b/popcorn.js index 41eab06..ae5f43f 100644 --- a/popcorn.js +++ b/popcorn.js @@ -257,7 +257,6 @@ plugin: plugin }); - // within the context of a plugin // any of the events can be listened to }; diff --git a/test/popcorn-api-draft-unit.js b/test/popcorn-api-draft-unit.js index 6cc7709..87e857c 100644 --- a/test/popcorn-api-draft-unit.js +++ b/test/popcorn-api-draft-unit.js @@ -122,6 +122,7 @@ test("Popcorn Events Stored By Type", function () { ; function plus(){ + if ( ++count == 4 ) { if ( fired === 4 ) { @@ -178,7 +179,9 @@ test("Popcorn Events Stored By Type", function () { test("Popcorn Events Simulated", function () { - + + QUnit.reset(); + var p = Popcorn("#video"), completed = [], eventtest = "loadstart progress suspend emptied stalled play pause " +