3 ms·
Instead of prefixing protected attributes with underscore (_class) i would instead just wrap those in quotes (valid js, no extra logic), e.g. 'class': 'foo'.
by benjoffe 14y ago
Instead of prefixing protected attributes with underscore (_class) i would instead just wrap those in quotes (valid js, no extra logic), e.g. 'class': 'foo'.
- aakilfernandes 14y agoI had no idea. Much prettier.
- wycats 14y agoAlso has the benefit of being compatible with the no-quotes version in ES5 browsers.