Skip to content

Fix leak of global vars in polyfill #1039

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

Merged
merged 1 commit into from
Oct 14, 2016

Conversation

web-bert
Copy link
Contributor

After looking at the requestAnimationFrame polyfill I noticed that it would be leaking global vars as it's not wrapped in an IIFE. As the closure will be around for the life of the page, I have also nulled out the temporary vars.

@rreusser
Copy link
Contributor

rreusser commented Oct 14, 2016

It was originally a commonjs export, so I clearly forgot it would be included directly when moving it to its final destination. Thanks for catching!

@etpinard etpinard added bug something broken status: reviewable labels Oct 14, 2016
@etpinard
Copy link
Contributor

Thanks @web-bert

@etpinard etpinard merged commit 9cb81ed into plotly:master Oct 14, 2016
@web-bert
Copy link
Contributor Author

Glad to help

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

Successfully merging this pull request may close these issues.

None yet

3 participants