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

CSS2Properties styleIndex was shared across all instances #19

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

dmcinnes
Copy link

I was seeing a problem that when a node was created and then was set to hidden by jQuery, any node I created after that point would also be hidden.
I looked into the code and CSS2Properties' styleIndex was getting set to supportedStyles. Any modifications to styleIndex would also update supportedStyles, so further instances of CSS2Properties will also get those changes.
I've updated it to instead make a clone using extend and also added a test for the issue.

Thanks for the extremely useful project!

@elemoine
Copy link

being hit by the same issue, any plan to merge this pull request?

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.

3 participants