]> khamidou — GitHub mirrors - popcorn-js.git/commitdiff
[#219] Missing coma on line 64; Causes leaks
authorrwldrn <waldron.rick@gmail.com>
Wed, 15 Dec 2010 01:11:11 +0000 (20:11 -0500)
committerrwldrn <waldron.rick@gmail.com>
Wed, 15 Dec 2010 01:11:11 +0000 (20:11 -0500)
popcorn.js
test/popcorn.unit.js

index 64b5faa4cfcd8d6b849960fa326cb7ce480ca9cf..6268d7884b3b6e830d25b052cdb9452d576ca5f9 100644 (file)
@@ -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;
index e3a60b6e314cbe24529532d79524e311a275748f..28352c977714a8e95cc5787a16e1939e8dddb985 100644 (file)
@@ -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) {};
+  
+});
 
 /*