]> khamidou — GitHub mirrors - popcorn-js.git/commitdiff
Fixed linting error and remove any leftover reference to the instance methods
authorDavid Seifried <david.c.seifried@gmail.com>
Thu, 22 Sep 2011 14:45:25 +0000 (10:45 -0400)
committerDavid Seifried <david.c.seifried@gmail.com>
Thu, 22 Sep 2011 14:45:25 +0000 (10:45 -0400)
popcorn.js

index 22cf2c098eedacf055e1982dc5b4baa40128c19f..8cd000c006cc2c7dd1a91821d212796984f3bd45 100644 (file)
 
             that.data.timeUpdateFunction = function( event ) {
               Popcorn.timeUpdate( that, event );
-            }
+            };
 
             if ( !that.isDestroyed ) {
               that.media.addEventListener( "timeupdate", that.data.timeUpdateFunction, false );
         instance.isDestroyed = true;
       }
 
-      Popcorn.removeInstance( instance );
+      Popcorn.instances.splice( Popcorn.instanceIds[ instance.id ], 1 );
+
+      delete Popcorn.instanceIds[ instance.id ];
     }
   });