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

Replace '.cssText' by looping on each styles #46

Merged
merged 1 commit into from
Jun 20, 2016
Merged

Replace '.cssText' by looping on each styles #46

merged 1 commit into from
Jun 20, 2016

Conversation

loboulet
Copy link
Contributor

When using copyStyles: true and browsing with IE11 or Firefox, the styles we're not copied because of .cssText. It is not well supported by IE11 nor Firefox.

I've replaced .cssText by a loop that goes through each styles and set it on the cloned element.

@RobbieTheWagner
Copy link
Owner

Thanks for the PRs @loboulet! Would you mind please writing some basic tests for this as well? Just want to make sure all new code introduced is tested.

@RobbieTheWagner RobbieTheWagner merged commit 2a3a6e3 into RobbieTheWagner:master Jun 20, 2016
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.

2 participants