这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@gsilis
Copy link

@gsilis gsilis commented May 11, 2016

The setTimeout function needs access to the $root variable even after
teardown. Leaving the reference will leak the $root dom element after
setTimeout runs. Memoize the reference to $root so that timeout can run,
but remove it in the stop() after it calls close().

The setTimeout function needs access to the $root variable even after
teardown. Leaving the reference will leak the $root dom element after
setTimeout runs. Memoize the reference to $root so that timeout can run,
but remove it in the stop() after it calls close().
@gsilis
Copy link
Author

gsilis commented May 11, 2016

Looks like there are some tests that depend on this.$root being present even after plugin teardown.

@DanielRuf
Copy link
Contributor

Please either update the unit tests or change your implementation.

@DanielRuf DanielRuf self-requested a review March 31, 2018 21:14
Copy link
Contributor

@DanielRuf DanielRuf left a comment

Choose a reason for hiding this comment

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

Please either update the unit tests or change your implementation.

@gsilis gsilis closed this Apr 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants