On 3 Nov 2008, at 19:53, Earle Clubb wrote: > Is there a way to get the case statement at the bottom to work? The > problem is that if e.type == EventOne (for example) is true, e.type > === EventOne is false and the case fails to find a match.
Surely you should use e.class instead of e.type? C --- Caius Durling [EMAIL PROTECTED] +44 (0) 7960 268 100 http://caius.name/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "DataMapper" 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/datamapper?hl=en -~----------~----~----~----~------~----~------~--~---
