Skip to content

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

Open
cburgmer wants to merge 1 commit intojosephschmitt:masterfrom
cburgmer:master
Open

Don't leak private getComputedStyle() to global window object#28
cburgmer wants to merge 1 commit intojosephschmitt:masterfrom
cburgmer:master

Conversation

@cburgmer
Copy link
Copy Markdown

@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