Next.js website for Rocky Mountain Vending company featuring: - Product catalog with Stripe integration - Service areas and parts pages - Admin dashboard with Clerk authentication - SEO optimized pages with JSON-LD structured data Co-authored-by: Cursor <cursoragent@cursor.com>
12 lines
No EOL
379 B
Text
12 lines
No EOL
379 B
Text
import contains from './contains';
|
|
import qsa from './querySelectorAll';
|
|
export default function filterEvents(selector, handler) {
|
|
return function filterHandler(e) {
|
|
var top = e.currentTarget;
|
|
var target = e.target;
|
|
var matches = qsa(top, selector);
|
|
if (matches.some(function (match) {
|
|
return contains(match, target);
|
|
})) handler.call(this, e);
|
|
};
|
|
} |