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. 4
      Sortable.js

4
Sortable.js

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

Loading…
Cancel
Save