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

Ensure that tracking progress and time progress will stop and player deleted after calling destroy method

This commit is contained in:
rkyrychuk 2011-12-15 23:17:10 +02:00
parent 6945be3d6e
commit f13a2bf733

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){