How is jQuery's event info stored?

How is jQuery's event info stored?

I'm trying to learn more about how jQuery actually works but I've hit a bump in the road as I've been working through the code and wondered if someone could clarify this for me.

How does jQuery maintain information about elements and their bound events

i.e. if you do:

$(".someClass").click(handler);

how does jQuery remember that binding so that when you call $(".someClass").unbind("click", handler) it knows about the click event you bound earlier?

Is there a global table of events somewhere that it writes to like
{ ".someClass" : { "click" : [handler1, handler2] } }?

Any pointers to where I could learn more about this (in the code or on the web) would be of great help.

Gracias!