From a12def52137269f201dbce7219cd1e46b8a58da8 Mon Sep 17 00:00:00 2001 From: Hyunje Alex Jun Date: Tue, 17 Feb 2015 01:28:33 +0000 Subject: [PATCH] Fix typo in dom.matches --- src/js/lib/dom.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/js/lib/dom.js b/src/js/lib/dom.js index 5fd9d7c..48e785f 100644 --- a/src/js/lib/dom.js +++ b/src/js/lib/dom.js @@ -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); } }