Hacker News new | past | comments | ask | show | jobs | submit login

You raise a legitimate question here and I was so inspired by it that I wrote a blog post, comparing behaviors to custom events.

It's here: http://things.rodpetrovic.com/post/283585362/why-jquery-beha...

In short: I'm well aware of custom events but I don't think they provide me with object-oriented encapsulation of functionality.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

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

Search: