-
Notifications
You must be signed in to change notification settings - Fork 799
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
Cleanup injected attribution <style> and <script> tags #1018
Comments
Would adding a map "unload" event listener here: https://github.com/Esri/esri-leaflet/blob/master/src/Util.js#L199 be a valid option? something like:
The above not accounting for <script> tags inserted. Would adding classes to the scripts be reasonable?
Anyway, just some suggestions to get the conversation started. Thanks! |
all that seems reasonable enough to me. thanks for chewing on it! |
So, this works for removing scripts/styles on unload: However, tests now fail...having a hard time deciphering the issue. Even adding an empty "unload" event in Util.js causes test failures for me. (Map container instance is being reused?) Any advice welcome, thanks! OS: Windows 10 |
its possible that my changes to the test suite in #1025 will help. |
The text was updated successfully, but these errors were encountered: