Browse Source

Fix HTMLElement.match error introduced in b8a358a

pull/1272/head
Sam Wray 7 years ago
parent
commit
3785502f1f
No known key found for this signature in database
GPG Key ID: 41B2E053F1C62E98
  1. 12
      Sortable.js
  2. 2
      Sortable.min.js

12
Sortable.js

@ -1432,9 +1432,17 @@
function _matches(/**HTMLElement*/el, /**String*/selector) { function _matches(/**HTMLElement*/el, /**String*/selector) {
if (el) { if (el) {
if (el.matches) { if (el.matches) {
return el.matches(selector); try {
return el.matches(selector);
} catch(e) {
return false;
}
} else if (el.msMatchesSelector) { } else if (el.msMatchesSelector) {
return el.msMatchesSelector(selector); try {
return el.msMatchesSelector(selector);
} catch(e) {
return false;
}
} }
} }

2
Sortable.min.js vendored

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save