Skip to content

Commit

Permalink
Fix matches function
Browse files Browse the repository at this point in the history
  • Loading branch information
spAnser authored Sep 8, 2017
1 parent a32a896 commit dcadcf1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions root/src/assets/scripts/functions.es6
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,8 @@ let get = (url, onload, onerror = () => {}) => {
request.send()
}

// Does this `el` match this `query selector`
let matches = (el, selector) => {
// Does this `query selector` match this `element`
let matches = (selector, el) => {
return (el.matches || el.matchesSelector || el.msMatchesSelector || el.mozMatchesSelector || el.webkitMatchesSelector || el.oMatchesSelector).call(el, selector)
}

Expand Down

0 comments on commit dcadcf1

Please sign in to comment.