Loading core/core.libraries.yml +5 −0 Original line number Diff line number Diff line Loading @@ -232,6 +232,11 @@ drupal.message: - core/drupal - core/drupal.announce drupal.nodelist.foreach: version: VERSION js: misc/polyfills/nodelist.foreach.js: { weight: -20 } drupal.object.assign: version: VERSION js: Loading core/misc/polyfills/nodelist.foreach.es6.js 0 → 100644 +15 −0 Original line number Diff line number Diff line /** * @file * Provides a polyfill for NodeList.forEach(). * * This is needed for Internet Explorer 11 and Opera Mini. * * This has been copied from MDN Web Docs code samples. Code samples in the MDN * Web Docs are licensed under CC0. * * @see https://developer.mozilla.org/en-US/docs/Web/API/NodeList/forEach#Polyfill * @see https://developer.mozilla.org/en-US/docs/MDN/About#Code_samples_and_snippets */ if (window.NodeList && !NodeList.prototype.forEach) { NodeList.prototype.forEach = Array.prototype.forEach; } core/misc/polyfills/nodelist.foreach.js 0 → 100644 +10 −0 Original line number Diff line number Diff line /** * DO NOT EDIT THIS FILE. * See the following change record for more information, * https://www.drupal.org/node/2815083 * @preserve **/ if (window.NodeList && !NodeList.prototype.forEach) { NodeList.prototype.forEach = Array.prototype.forEach; } No newline at end of file core/modules/media_library/media_library.libraries.yml +1 −0 Original line number Diff line number Diff line Loading @@ -23,6 +23,7 @@ widget: - core/drupal.dialog.ajax - core/jquery.once - core/sortable - core/drupal.nodelist.foreach ui: version: VERSION Loading Loading
core/core.libraries.yml +5 −0 Original line number Diff line number Diff line Loading @@ -232,6 +232,11 @@ drupal.message: - core/drupal - core/drupal.announce drupal.nodelist.foreach: version: VERSION js: misc/polyfills/nodelist.foreach.js: { weight: -20 } drupal.object.assign: version: VERSION js: Loading
core/misc/polyfills/nodelist.foreach.es6.js 0 → 100644 +15 −0 Original line number Diff line number Diff line /** * @file * Provides a polyfill for NodeList.forEach(). * * This is needed for Internet Explorer 11 and Opera Mini. * * This has been copied from MDN Web Docs code samples. Code samples in the MDN * Web Docs are licensed under CC0. * * @see https://developer.mozilla.org/en-US/docs/Web/API/NodeList/forEach#Polyfill * @see https://developer.mozilla.org/en-US/docs/MDN/About#Code_samples_and_snippets */ if (window.NodeList && !NodeList.prototype.forEach) { NodeList.prototype.forEach = Array.prototype.forEach; }
core/misc/polyfills/nodelist.foreach.js 0 → 100644 +10 −0 Original line number Diff line number Diff line /** * DO NOT EDIT THIS FILE. * See the following change record for more information, * https://www.drupal.org/node/2815083 * @preserve **/ if (window.NodeList && !NodeList.prototype.forEach) { NodeList.prototype.forEach = Array.prototype.forEach; } No newline at end of file
core/modules/media_library/media_library.libraries.yml +1 −0 Original line number Diff line number Diff line Loading @@ -23,6 +23,7 @@ widget: - core/drupal.dialog.ajax - core/jquery.once - core/sortable - core/drupal.nodelist.foreach ui: version: VERSION Loading