(node, selector)
| 8404 | var matchesCache; |
| 8405 | |
| 8406 | function matches(node, selector) { |
| 8407 | if (!matchesCache && _inDOM.default) { |
| 8408 | var body = document.body; |
| 8409 | var nativeMatch = body.matches || body.matchesSelector || body.webkitMatchesSelector || body.mozMatchesSelector || body.msMatchesSelector; |
| 8410 | matchesCache = nativeMatch ? function (node, selector) { |
| 8411 | return nativeMatch.call(node, selector); |
| 8412 | } : ie8MatchesSelector; |
| 8413 | } |
| 8414 | |
| 8415 | return matchesCache ? matchesCache(node, selector) : null; |
| 8416 | } |
| 8417 | |
| 8418 | function ie8MatchesSelector(node, selector) { |
| 8419 | var matches = (0, _querySelectorAll.default)(node.document || node.ownerDocument, selector), |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…