#230 ✓resolved
MadRabbit

Event#find method

Reported by MadRabbit | April 25th, 2010 @ 11:32 AM | in 2.0.0 Release

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

Comments and changes to this ticket

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.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

RightJS Core Tickets

Shared Ticket Bins

People watching this ticket

Pages