Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Event#find method

#230

During the events delegation feature handling, it is pretty common that you need to find some element between the target and the document which matches some rule. Say in case when you need to track mouse events over a complicated pile of elements, kinda like that

var target  = event.target;
var targets = [target].concat(target.parents());
var element = targets.first('match', 'my#css.rule');

Would be cool to have some sort of method that will do the trick

Reported by MadRabbit · April 25th, 2010 @ 11:32 AM

State: resolved
Milestone: 2.0.0 Release
Assigned to: nobody

Activity

  1. MadRabbit
    MadRabbit
    • State changed from new to resolved

    June 1st, 2010 @ 10:02 AM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.