Unverified Commit 2d1b0a4f authored by Lauri Timmanee's avatar Lauri Timmanee
Browse files

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
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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:
+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;
}
+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
+1 −0
Original line number Diff line number Diff line
@@ -23,6 +23,7 @@ widget:
    - core/drupal.dialog.ajax
    - core/jquery.once
    - core/sortable
    - core/drupal.nodelist.foreach

ui:
  version: VERSION