Skip to content

Commit

Permalink
Remove polyfill for IE11
Browse files Browse the repository at this point in the history
  • Loading branch information
boxed committed Sep 21, 2024
1 parent a4ef972 commit 8665ce2
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions iommi/templates/iommi/table/js_select_all.html
Original file line number Diff line number Diff line change
@@ -1,28 +1,5 @@
{% load i18n %}
<script>
// Polyfill for closest() on IE11. Remove when we drop support for IE11.

if (!Element.prototype.matches) {
Element.prototype.matches =
Element.prototype.msMatchesSelector ||
Element.prototype.webkitMatchesSelector;
}

if (!Element.prototype.closest) {
Element.prototype.closest = function (s) {
var el = this;

do {
if (Element.prototype.matches.call(el, s)) return el;
el = el.parentElement || el.parentNode;
} while (el !== null && el.nodeType === 1);
return null;
};
}

// End polyfill for IE11


function iommi_table_js_select_all(base, has_paginator) {
var table = base.closest('table');
var tbody = table.querySelector('tbody');
Expand Down

0 comments on commit 8665ce2

Please sign in to comment.