Fix typo in dom.matches
This commit is contained in:
parent
c4790bb656
commit
a12def5213
@ -56,11 +56,11 @@ exports.matches = function (element, query) {
|
||||
} else {
|
||||
if (typeof element.matchesSelector !== 'undefined') {
|
||||
return element.matchesSelector(query);
|
||||
} else if (element.webkitMatchesSelector !== 'undefined') {
|
||||
} else if (typeof element.webkitMatchesSelector !== 'undefined') {
|
||||
return element.webkitMatchesSelector(query);
|
||||
} else if (element.mozMatchesSelector !== 'undefined') {
|
||||
} else if (typeof element.mozMatchesSelector !== 'undefined') {
|
||||
return element.mozMatchesSelector(query);
|
||||
} else if (element.msMatchesSelector !== 'undefined') {
|
||||
} else if (typeof element.msMatchesSelector !== 'undefined') {
|
||||
return element.msMatchesSelector(query);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user