And of course, there is always EventPublisher, which is pretty lightweight and has served me well in many projects: http://wrath.rubyonrails.org/pipermail/rails-spinoffs/2006-February/002875.html
Short usage description: http://lists.rubyonrails.org/pipermail/rails-spinoffs/2006-March/002885.html For a global event dispatcher, just create an instance of EventPublisher at the global scope level... var myEventDispatcher = new EventPublisher(); On 2/7/07, Christian Schaefer <[EMAIL PROTECTED]> wrote: > > > hi mislav, > > > See this API documentation (work by Seth Dillingham): > > http://www.truerwords.net/articles/web-tech/custom_events_ref.html > > > very interesting approach certainly. > maybe I should think about synthetic events to be part of my > implementation. but I can not but notice that the implementation by seth > is a bit too much for me. > > I do like the synthetic event approach but the api he created appears > far too complicated to me. I mean you have to create publisher objects > just to fire an event rather than just make a function call to send a > message. I like colins suggestion of using an api similar to > Ajax.Responders far better for its simplicity. > > > what do you think? > > > cheers > /christian > > > > -- Ryan Gahl Application Development Consultant Athena Group, Inc. Inquire: 1-920-955-1457 Blog: http://www.someElement.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Prototype: Core" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/prototype-core?hl=en -~----------~----~----~----~------~----~------~--~---
