From: David Seifried Date: Thu, 22 Sep 2011 14:45:25 +0000 (-0400) Subject: Fixed linting error and remove any leftover reference to the instance methods X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=a81cbb1c4899a1c0d826bba2738b199c0071181c;p=popcorn-js.git Fixed linting error and remove any leftover reference to the instance methods --- 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 ]; } });