1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- export function findEventDispatcher(target, det, returnFirstMatch) {
- var found;
- while (target) {
- if (det(target)) {
- found = target;
- if (returnFirstMatch) {
- break;
- }
- }
- target = target.__hostTarget || target.parent;
- }
- return found;
- }
|