On Nov 13, 5:06 pm, xwisdom <[email protected]> wrote: > $(context).bind('a.menu:click', callback);
The event name has to be able to support any string (to include custom events), and the selector has to be able to support any selector. Because selectors already have stuff like ':eq(n)', your suggestion of ':eventType' clashes with the selector API, plus 'a.menu' is in danger of being seen as a name-spaced custom event 'a'. For this reason I'm not convinced it's a Good Idea to mix the selector and the event type. Still, if they were to be mixed I think something like this is more workable: 'click[a.menu]' 'click(a.menu)' -- You received this message because you are subscribed to the Google Groups "jQuery Development" 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/jquery-dev?hl=.
