From 58843d3f825e9f9d2a88da8d8b87a264b4debb1a Mon Sep 17 00:00:00 2001 From: rwldrn Date: Sat, 4 Dec 2010 16:10:59 -0500 Subject: [PATCH] Applies to #157 --- popcorn.js | 1 - test/popcorn-api-draft-unit.js | 5 ++++- 2 files changed, 4 insertions(+), 2 deletions(-) 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 " + -- 2.43.0