env-js
env-js copied to clipboard
CSS2Properties styleIndex was shared across all instances
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!
being hit by the same issue, any plan to merge this pull request?