env-js
env-js copied to clipboard
CSS2Properties uniqueness
All instances of CSS2Properties currently share an instance of a single object for this.styleIndex. This makes it so that if you set a style on divA, divB also reflects the change.
This patch addresses the issue by extending a new object with supportedStyles for each instance of CSS2Properties.
Bit me during some tests. I just noticed however that this is a duplicate pull request. Pull request #19 addresses this issue in the same manner, but also allows access ti styles set through innerHTML -- it may be worth looking at instead of this pull request.
https://github.com/thatcher/env-js/pull/19