vlite icon indicating copy to clipboard operation
vlite copied to clipboard

Fix the destroy method

Open tadaskarpavicius opened this issue 3 months ago • 2 comments

This PR contains a:

  • [x] bugfix
  • [ ] new feature
  • [ ] code refactor
  • [ ] test update
  • [ ] typo fix
  • [ ] metadata update

Motivation / Use-Case

destroy() method should remove all traces of the plugin and restore the media element to its original state. At the moment it just removes the container element (with video element itself) which is not an expected behavior

Breaking Changes

Potentially breaking in those cases where users expected such destroy() behavior and wrote code which interacts with outerContainer after destroy method was called

Additional Info

tadaskarpavicius avatar Mar 18 '24 11:03 tadaskarpavicius