Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

polyfills.js 441B

1234567891011121314151617
  1. // compat: IE11
  2. if (!Element.prototype.matches) {
  3. Element.prototype.matches = Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector;
  4. }
  5. // compat: IE11
  6. if (!Element.prototype.closest) {
  7. Element.prototype.closest = function (s) {
  8. let el = this;
  9. do {
  10. if (el.matches(s)) return el;
  11. el = el.parentElement || el.parentNode;
  12. } while (el !== null && el.nodeType === 1);
  13. return null;
  14. };
  15. }