envjs / env-js

A pure-JavaScript browser environment.
http://www.envjs.com/
87 stars 19 forks source link

CSS Properties mixed up #20

Open orslumen opened 13 years ago

orslumen commented 13 years ago

In CSS2Properties of css.js , the setProperty method stores updated CSS properties in the styleIndex variable, but that object is shared between multiple (all?) nodes.

So when a CSS property is dynamically updated in one node, it also changes in all other nodes.

One way to fix is is by storing all changed properties in a separate variable, see https://github.com/orslumen/env-js/commit/aa0318d4a4bf88eaf03282b9f4075dbc86c8b323