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

Don't leak private getComputedStyle() to global window object #28

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

cburgmer
Copy link

@cburgmer cburgmer commented Oct 9, 2014

Currently Clamp.js leaks the private fallback implementation of getComputedStyle() to the global window object. This does not play nice with other code, that does not expect the function to exist in IE8 and other old browsers. There should be no need to expose the inner function. This fix keeps the implementation private.

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.

1 participant