Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Something has to map your click events to each of the button classes, and you have to test that code anyway. So I would just put that delegation in the Button class, I don't see the point in the extra abstraction to the factory yet. But to each their own I guess :)


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: