Skip to content

Commit

Permalink
Fix #658 video: error on destroy
Browse files Browse the repository at this point in the history
  • Loading branch information
mistic100 committed Mar 24, 2022
1 parent a2a84c3 commit 7909967
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion src/plugins/settings/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export class SettingsPlugin extends AbstractPlugin {
* @package
*/
destroy() {
delete this.settings;
this.settings.length = 0;

super.destroy();
}
Expand Down
3 changes: 0 additions & 3 deletions src/plugins/video/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,6 @@ export class VideoPlugin extends AbstractPlugin {
this.psv.off(CONSTANTS.EVENTS.PANORAMA_LOADED, this);
this.psv.off(CONSTANTS.EVENTS.KEY_PRESS, this);

this.progressbar?.destroy();
this.overlay?.destroy();

delete this.autorotate;
delete this.progressbar;
delete this.overlay;
Expand Down

0 comments on commit 7909967

Please sign in to comment.