handle clicking anchor children

When clicking a child of an anchor link it wasn't handled. Removed `component/delegate` and used `component/event`, now it traverses up the parents to find if the click belongs to an anchor link. Since we probably need that as well, it is passed on to the callback `fn(e, anchor)`.