(n: any, selector: string)
| 57 | } |
| 58 | |
| 59 | function elementMatches(n: any, selector: string): boolean { |
| 60 | if (getDOM().isElementNode(n)) { |
| 61 | return ( |
| 62 | (n.matches && n.matches(selector)) || |
| 63 | (n.msMatchesSelector && n.msMatchesSelector(selector)) || |
| 64 | (n.webkitMatchesSelector && n.webkitMatchesSelector(selector)) |
| 65 | ); |
| 66 | } |
| 67 | |
| 68 | return false; |
| 69 | } |
no test coverage detected
searching dependent graphs…