3 ms·
It'd be nice to not have a set() method, but instead use property accessors. That way data-binding frameworks like set properties will just work.
by spankalee 10y ago
It'd be nice to not have a set() method, but instead use property accessors. That way data-binding frameworks like set properties will just work.
- felipeccastro 10y agoYes, that would make a slightly better syntax. However, using the .set() method has an advantage of letting you pass all attributes in a single hash, and re-rendering only once at the end. It's a trade off, I think.