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) { function _matches(/**HTMLElement*/el, /**String*/selector) {
if (el) { if (el) {
if (el.matches) { try {
return el.matches(selector); if (el.matches) {
} else if (el.msMatchesSelector) { return el.matches(selector);
return el.msMatchesSelector(selector); } else if (el.msMatchesSelector) {
return el.msMatchesSelector(selector);
}
} catch(_) {
return false;
} }
} }

Loading…
Cancel
Save