env-js icon indicating copy to clipboard operation
env-js copied to clipboard

CSS2Properties uniqueness

Open putermancer opened this issue 14 years ago • 1 comments

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.

putermancer avatar Mar 18 '11 22:03 putermancer

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

putermancer avatar Mar 21 '11 17:03 putermancer