ged-odoo / blockdom

A fast virtual dom library
MIT License
556 stars 25 forks source link

fix: properly handle 0 or undefined as class attribute #32

Closed ged-odoo closed 3 years ago

ged-odoo commented 3 years ago

It seems like the class attribute should display the string value of any data that is given. For the string 0, it was skipped altogether.

However, if it receives undefined, it basically means that we have no defined class, so we don't want to set it to anything.