
| Current Path : /var/www/html1/bbp/web/core/themes/olivero/js/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html1/bbp/web/core/themes/olivero/js/polyfills.es6.js |
/* eslint-disable */
/**
* From https://developer.mozilla.org/en-US/docs/Web/API/NodeList/forEach#Polyfill
* Licensed public domain (CC0).
* @see https://creativecommons.org/publicdomain/zero/1.0/
* @see https://developer.mozilla.org/en-US/docs/MDN/About
*
* @todo Remove when https://www.drupal.org/node/3143465 is fixed.
*/
if (window.NodeList && !NodeList.prototype.forEach) {
NodeList.prototype.forEach = function (callback, thisArg) {
thisArg = thisArg || window;
for (var i = 0; i < this.length; i++) {
callback.call(thisArg, this[i], i, this);
}
};
}
/**
* From https://developer.mozilla.org/en-US/docs/Web/API/Element/matches#Polyfill
* Licensed public domain (CC0).
* @see https://creativecommons.org/publicdomain/zero/1.0/
* @see https://developer.mozilla.org/en-US/docs/MDN/About
*/
if (!Element.prototype.matches) {
Element.prototype.matches =
Element.prototype.msMatchesSelector ||
Element.prototype.webkitMatchesSelector;
}