From: rwldrn Date: Wed, 15 Dec 2010 01:11:11 +0000 (-0500) Subject: [#219] Missing coma on line 64; Causes leaks X-Git-Tag: v0.2~48 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=12bad186b3cbb797caff67bfc969abdda1d80210;p=popcorn-js.git [#219] Missing coma on line 64; Causes leaks --- diff --git a/popcorn.js b/popcorn.js index 64b5faa..6268d78 100644 --- a/popcorn.js +++ b/popcorn.js @@ -61,7 +61,7 @@ that.video.addEventListener( "timeupdate", function( event ) { var currentTime = this.currentTime, - previousTime = that.data.trackEvents.previousUpdateTime + previousTime = that.data.trackEvents.previousUpdateTime, tracks = that.data.trackEvents, tracksByEnd = tracks.byEnd, tracksByStart = tracks.byStart; diff --git a/test/popcorn.unit.js b/test/popcorn.unit.js index e3a60b6..28352c9 100644 --- a/test/popcorn.unit.js +++ b/test/popcorn.unit.js @@ -664,6 +664,19 @@ test("Protected Names", function () { }); +test("Last Check", function () { + + // ALWAYS RUN LAST + + expect(1) + try { + + equals( Setup.getGlobalSize(), Setup.globalSize + 1 , "Popcorn API did not leak"); + plus(); + + } catch (e) {}; + +}); /*