- From: Tab Atkins Jr. via GitHub <sysbot+gh@w3.org>
- Date: Wed, 05 Apr 2017 19:07:39 +0000
- To: public-houdini-archive@w3.org
We neither need nor want "live" mutability. Updates only happen if you call `StyleMap.set()`. But it's useful (and more performant) to be able to `.get()` a value out of a stylemap, fiddle with it, then `.set()` it back. (Rather than getting an immutable value, then having to construct a fresh value with the changes you want, then setting it back.) You can do this for all the other objects, but not the two Array-likes. (The "get a value, mutate it, set it back" pattern is especially useful for animations, where you can just reuse a single object that's continually fiddled with, rather than creating garbage at rAF speed.) -- GitHub Notification of comment by tabatkins Please view or discuss this issue at https://github.com/w3c/css-houdini-drafts/issues/239#issuecomment-291964428 using your GitHub account
Received on Wednesday, 5 April 2017 19:07:46 UTC