Protolicious is my personal repo for little snippets I use at work or
play with : )
You noticed right about main differences. My main concern was
definitely a performance, therefore selector caching and plain loops.
Another thing to note is that it accepts comma-separated selector
expressions:
Event.register('.confirmation abbr, .error abbr', 'click', showInfo);
I'm not sure how important it is, but it also purges all the event
handlers (attached internally) when page unloads.
- kangax
On Feb 22, 2:03 pm, Ken Snyder <[EMAIL PROTECTED]> wrote:
> kangax wrote:
> > Ken,
> > take a look at my implementation [1] - it looks very much alike,
> > except for the syntax : )
>
> > [1]http://code.google.com/p/protolicious/source/browse/trunk/src/event.r...
>
> > - kangax
>
> Cool! So if I understand it correctly, register() has three differences
> from mine:
> - register() registers all rules to the document
> - register() caches the Selector objects (cool!)
> - register() requires attaching one selector-handler pair at a time
>
> So what is this protolicious?
>
> I couldn't find any event delegation scripts on scripteka... is your
> script in protolicious only?
>
> - Ken
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---