Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a destroy method. #135

Closed
samussiah opened this issue May 20, 2019 · 0 comments
Closed

Add a destroy method. #135

samussiah opened this issue May 20, 2019 · 0 comments
Milestone

Comments

@samussiah
Copy link
Contributor

samussiah commented May 20, 2019

That not only clears the contents of the containing element and the Webcharts object(s), but the stylesheet as well.

Test notes

  • Open the developer console.
  • On the Elements tab expand the <head> element and verify that the last child node is a <style> element and that its styles include .crf-heat-map classes.
  • On the Console tab run d3.select('.crf-heat-map').node() and verify the CRF Heat Map <div> element is returned.
  • Run d3.select('.crf-heat-map').datum().destroy() and verify both the <style> element and <div> element are removed from the DOM.

image

image

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

No branches or pull requests

2 participants