1 | "use strict";
|
2 |
|
3 | exports.__esModule = true;
|
4 | exports.default = matches;
|
5 | var matchesImpl;
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 | function matches(node, selector) {
|
14 | if (!matchesImpl) {
|
15 | var body = document.body;
|
16 | var nativeMatch = body.matches || body.matchesSelector || body.webkitMatchesSelector || body.mozMatchesSelector || body.msMatchesSelector;
|
17 |
|
18 | matchesImpl = function matchesImpl(n, s) {
|
19 | return nativeMatch.call(n, s);
|
20 | };
|
21 | }
|
22 |
|
23 | return matchesImpl(node, selector);
|
24 | }
|
25 |
|
26 | module.exports = exports["default"]; |
\ | No newline at end of file |