3 ms·
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.rodpe
by rodp 17y ago
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-behavior 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.