Skip to content
Permalink
Browse files

Selector: Use Element.matches in selector-native if available

  • Loading branch information
foolip authored and dmethvin committed Feb 21, 2014
1 parent ad032d3 commit 2c2c93c7cbfafdb06a27dafee88fc67b265c8e32
Showing with 3 additions and 1 deletion.
  1. +1 −0 AUTHORS.txt
  2. +2 −1 src/selector-native.js
@@ -220,4 +220,5 @@ Roman Reiß <me@silverwind.io>
Benjy Cui <benjytrys@gmail.com>
Rodrigo Rosenfeld Rosas <rr.rosas@gmail.com>
John Hoven <hovenj@gmail.com>
Philip Jägenstedt <philip@foolip.org>

@@ -29,7 +29,8 @@ define([

var docElem = window.document.documentElement,
selector_hasDuplicate,
matches = docElem.webkitMatchesSelector ||
matches = docElem.matches ||
docElem.webkitMatchesSelector ||
docElem.mozMatchesSelector ||
docElem.oMatchesSelector ||
docElem.msMatchesSelector,

0 comments on commit 2c2c93c

Please sign in to comment.
You can’t perform that action at this time.