Browse Source

Merge pull request #1272 from 2xAA/patch-b8a358a

Fix HTMLElement.matches error introduced in b8a358a
pull/1274/head
Lebedev Konstantin 7 years ago committed by GitHub
parent
commit
ab9f9600e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 12
      Sortable.js

12
Sortable.js

@ -1433,10 +1433,14 @@
function _matches(/**HTMLElement*/el, /**String*/selector) {
if (el) {
if (el.matches) {
return el.matches(selector);
} else if (el.msMatchesSelector) {
return el.msMatchesSelector(selector);
try {
if (el.matches) {
return el.matches(selector);
} else if (el.msMatchesSelector) {
return el.msMatchesSelector(selector);
}
} catch(_) {
return false;
}
}

Loading…
Cancel
Save