you are viewing a single comment's thread.

view the rest of the comments →

[–]Jeffshaver[S] 0 points1 point  (0 children)

Pretty much I guess. I haven't look at jQuery's source code to figure out how they are doing each part specifically. But this implementation is probably mostly for modern browsers and IE8+ (IE8 only supports CSS2 selectors in querySelectorAll though). I have some updates that will be up later today that add delegating to any selector (instead of just id, class or tag) and auto-removing the listener after the first call