Skip to content

Conversation

@YunFeng0817
Copy link
Member

This PR adds a destroy function to remove the player from dom. Also, try to fix #883.

Changes in the PR:

  • add a destroy function
  • add a test case
  • add this API to the guidance document
  • remove several Eslint warnings

@YunFeng0817 YunFeng0817 requested a review from Juice10 August 11, 2022 05:32
Copy link
Member

@Yuyz0112 Yuyz0112 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Maybe we can improve this implementation by rejecting further function calls after being destroyed. But at this moment, I think the current implementation is good enough.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

new rrweb.Replayer 销毁

4 participants