7 ms·
Here is the jQuery way to do this: http://docs.jquery.com/Plugins/Authoring http://docs.jquery.com/Plugins/Authoring Plus Event Binding: http://blog.rebeccam
by JoelSutherland 17y ago
Here is the jQuery way to do this:
http://docs.jquery.com/Plugins/Authoring http://docs.jquery.com/Plugins/Authoring
Plus Event Binding:
http://blog.rebeccamurphey.com/2009/12/03/demystifying-custom-events-in-jquery/ http://blog.rebeccamurphey.com/2009/12/03/demystifying-custo...
- rodp 17y agoYou 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.