So I guess there's a few options.  Taking the connect/onclick example:

0. Existing:
    forEach($$('#my-ul li'), function(el){
            connect(el, 'onclick', func);
         });

1. JQuery like:
    Query('#my-ul li').click(func);

2. Modify the lookup by id convention to lookup by selector + map:
    connect('#my-ul li', 'onclick', func);

3. As above but double the namespace '-)
    connectAll('#my-ul li', 'onclick', func);

4. Map if passed an array-like
    connect($$('#my-ul li'), 'onclick', func);

5. More powerful partial:
    forEach($$('#my-ul li'), partial(connect, __, 'onclick', func));
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"MochiKit" 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/mochikit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to