From a81cbb1c4899a1c0d826bba2738b199c0071181c Mon Sep 17 00:00:00 2001 From: David Seifried Date: Thu, 22 Sep 2011 10:45:25 -0400 Subject: [PATCH] Fixed linting error and remove any leftover reference to the instance methods --- popcorn.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/popcorn.js b/popcorn.js index 22cf2c0..8cd000c 100644 --- a/popcorn.js +++ b/popcorn.js @@ -263,7 +263,7 @@ that.data.timeUpdateFunction = function( event ) { Popcorn.timeUpdate( that, event ); - } + }; if ( !that.isDestroyed ) { that.media.addEventListener( "timeupdate", that.data.timeUpdateFunction, false ); @@ -420,7 +420,9 @@ instance.isDestroyed = true; } - Popcorn.removeInstance( instance ); + Popcorn.instances.splice( Popcorn.instanceIds[ instance.id ], 1 ); + + delete Popcorn.instanceIds[ instance.id ]; } }); -- 2.43.0