1
0
mirror of https://github.com/videojs/video.js.git synced 2025-01-02 06:32:07 +02:00

Merge pull request #102 from rkyrychuk/patch-2

Ensure that tracking progress and time progress will stop after destroy
This commit is contained in:
Heff 2011-12-21 18:07:50 -08:00
commit 20b36faf11

View File

@ -107,7 +107,12 @@ _V_.Player = _V_.Component.extend({
// Cache for video property values.
values: {},
destroy: function(){},
destroy: function(){
// Ensure that tracking progress and time progress will stop and plater deleted
this.stopTrackingProgress();
this.stopTrackingCurrentTime();
delete _V_.players[this.id]
},
createElement: function(type, options){