Unverified Commit 2d1b0a4f authored by lauriii's avatar lauriii

Issue #3143465 by Mark Shi, if-jds, nod_, bnjmnm, paulabg: Add...

Issue #3143465 by Mark Shi, if-jds, nod_, bnjmnm, paulabg: Add NodeList.forEach polyfill to support IE11
parent 8c63aba8
......@@ -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:
......
/**
* @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;
}
/**
* 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
......@@ -23,6 +23,7 @@ widget:
- core/drupal.dialog.ajax
- core/jquery.once
- core/sortable
- core/drupal.nodelist.foreach
ui:
version: VERSION
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment