From f13a2bf7332e4fa6d21df1146c4870cdbeb6f138 Mon Sep 17 00:00:00 2001 From: rkyrychuk Date: Thu, 15 Dec 2011 23:17:10 +0200 Subject: [PATCH] Ensure that tracking progress and time progress will stop and player deleted after calling destroy method --- src/player.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/player.js b/src/player.js index 419aada31..6f6d9e91b 100644 --- a/src/player.js +++ b/src/player.js @@ -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){