On Sunday 17 December 2006 08:34, tobie wrote:

> You might also want to have a look at event delegation:
>
> http://icant.co.uk/sandbox/eventdelegation/

Yes, that's the right approach when the same (kind of) observer is 
attached to a number of similar elements. In general, you can't assume 
that.

Also, I think "event delegation" is not a good name for the approach. 
It's just a case where event bubbling is used to implement a Chain of 
Responsibility.

Michael

-- 
Michael Schuerig
mailto:[EMAIL PROTECTED]
http://www.schuerig.de/michael/

--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the Google Groups 
"Ruby on Rails: Spinoffs" 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/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to