fix: Properly clear all timeouts on destroy
This commit is contained in:
		| @ -1088,11 +1088,13 @@ class Plyr { | |||||||
|         // Stop playback |         // Stop playback | ||||||
|         this.stop(); |         this.stop(); | ||||||
|  |  | ||||||
|  |         // Clear timeouts | ||||||
|  |         clearTimeout(this.timers.loading); | ||||||
|  |         clearTimeout(this.timers.controls); | ||||||
|  |         clearTimeout(this.timers.resized); | ||||||
|  |  | ||||||
|         // Provider specific stuff |         // Provider specific stuff | ||||||
|         if (this.isHTML5) { |         if (this.isHTML5) { | ||||||
|             // Clear timeout |  | ||||||
|             clearTimeout(this.timers.loading); |  | ||||||
|  |  | ||||||
|             // Restore native video controls |             // Restore native video controls | ||||||
|             ui.toggleNativeControls.call(this, true); |             ui.toggleNativeControls.call(this, true); | ||||||
|  |  | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user