Here is the jQuery way to do this:
http://docs.jquery.com/Plugins/Authoring
Plus Event Binding:
http://blog.rebeccamurphey.com/2009/12/03/demystifying-custo...
http://docs.jquery.com/Plugins/Authoring
Plus Event Binding:
http://blog.rebeccamurphey.com/2009/12/03/demystifying-custo...
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.