Mercurial > hg > cmmr2012-drupal-site
diff core/modules/history/js/mark-as-read.es6.js @ 4:a9cd425dd02b
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:11:55 +0000 |
parents | c75dbcec494b |
children |
line wrap: on
line diff
--- a/core/modules/history/js/mark-as-read.es6.js Thu Feb 28 11:14:44 2019 +0000 +++ b/core/modules/history/js/mark-as-read.es6.js Thu Feb 28 13:11:55 2019 +0000 @@ -7,13 +7,15 @@ * @see Drupal.history */ -(function (window, Drupal, drupalSettings) { +(function(window, Drupal, drupalSettings) { // When the window's "load" event is triggered, mark all enumerated nodes as // read. This still allows for Drupal behaviors (which are triggered on the // "DOMContentReady" event) to add "new" and "updated" indicators. window.addEventListener('load', () => { if (drupalSettings.history && drupalSettings.history.nodesToMarkAsRead) { - Object.keys(drupalSettings.history.nodesToMarkAsRead).forEach(Drupal.history.markAsRead); + Object.keys(drupalSettings.history.nodesToMarkAsRead).forEach( + Drupal.history.markAsRead, + ); } }); -}(window, Drupal, drupalSettings)); +})(window, Drupal, drupalSettings);