diff options
author | catch <catch@35733.no-reply.drupal.org> | 2020-10-21 11:41:33 +0100 |
---|---|---|
committer | catch <catch@35733.no-reply.drupal.org> | 2020-10-21 11:41:33 +0100 |
commit | 89f6acb734e93d22468e25f59e0bf59ca2d8aaa5 (patch) | |
tree | d594c0079c7c557feb5fbcbb76c3a67eca744d8f /core/modules/comment/js/node-new-comments-link.es6.js | |
parent | da115f6ccffb6c9aeb368b56b8664332968a65e6 (diff) | |
download | drupal-89f6acb734e93d22468e25f59e0bf59ca2d8aaa5.tar.gz drupal-89f6acb734e93d22468e25f59e0bf59ca2d8aaa5.zip |
Issue #3174884 by raman.b, alexpott, lauriii, zrpnr, nod_: Update yarn dependencies for Drupal 9.1.0
Diffstat (limited to 'core/modules/comment/js/node-new-comments-link.es6.js')
-rw-r--r-- | core/modules/comment/js/node-new-comments-link.es6.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/modules/comment/js/node-new-comments-link.es6.js b/core/modules/comment/js/node-new-comments-link.es6.js index d3d0a0787078..6d6aa600723b 100644 --- a/core/modules/comment/js/node-new-comments-link.es6.js +++ b/core/modules/comment/js/node-new-comments-link.es6.js @@ -6,7 +6,7 @@ * installed. */ -(function($, Drupal, drupalSettings) { +(function ($, Drupal, drupalSettings) { /** * Hides a "new comment" element. * @@ -113,7 +113,7 @@ * Data about new comment links indexed by nodeID. */ function render(results) { - Object.keys(results || {}).forEach(nodeID => { + Object.keys(results || {}).forEach((nodeID) => { if ($placeholdersToUpdate.hasOwnProperty(nodeID)) { $placeholdersToUpdate[nodeID] .attr('href', results[nodeID].first_new_comment_link) @@ -160,7 +160,7 @@ const $placeholders = $(context) .find('[data-history-node-last-comment-timestamp]') .once('history') - .filter(function() { + .filter(function () { const $placeholder = $(this); const lastCommentTimestamp = parseInt( $placeholder.attr('data-history-node-last-comment-timestamp'), |