Fix typo in dom.matches

This commit is contained in:
Hyunje Alex Jun 2015-02-17 01:28:33 +00:00
parent c4790bb656
commit a12def5213

View File

@ -56,11 +56,11 @@ exports.matches = function (element, query) {
} else { } else {
if (typeof element.matchesSelector !== 'undefined') { if (typeof element.matchesSelector !== 'undefined') {
return element.matchesSelector(query); return element.matchesSelector(query);
} else if (element.webkitMatchesSelector !== 'undefined') { } else if (typeof element.webkitMatchesSelector !== 'undefined') {
return element.webkitMatchesSelector(query); return element.webkitMatchesSelector(query);
} else if (element.mozMatchesSelector !== 'undefined') { } else if (typeof element.mozMatchesSelector !== 'undefined') {
return element.mozMatchesSelector(query); return element.mozMatchesSelector(query);
} else if (element.msMatchesSelector !== 'undefined') { } else if (typeof element.msMatchesSelector !== 'undefined') {
return element.msMatchesSelector(query); return element.msMatchesSelector(query);
} }
} }