From 89f6acb734e93d22468e25f59e0bf59ca2d8aaa5 Mon Sep 17 00:00:00 2001 From: catch Date: Wed, 21 Oct 2020 11:41:33 +0100 Subject: Issue #3174884 by raman.b, alexpott, lauriii, zrpnr, nod_: Update yarn dependencies for Drupal 9.1.0 --- core/modules/comment/js/comment-by-viewer.es6.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core/modules/comment/js/comment-by-viewer.es6.js') diff --git a/core/modules/comment/js/comment-by-viewer.es6.js b/core/modules/comment/js/comment-by-viewer.es6.js index de24038187aa..261c818192ac 100644 --- a/core/modules/comment/js/comment-by-viewer.es6.js +++ b/core/modules/comment/js/comment-by-viewer.es6.js @@ -3,7 +3,7 @@ * Attaches behaviors for the Comment module's "by-viewer" class. */ -(function($, Drupal, drupalSettings) { +(function ($, Drupal, drupalSettings) { /** * Add 'by-viewer' class to comments written by the current user. * @@ -13,7 +13,7 @@ attach(context) { const currentUserID = parseInt(drupalSettings.user.uid, 10); $('[data-comment-user-id]') - .filter(function() { + .filter(function () { return ( parseInt(this.getAttribute('data-comment-user-id'), 10) === currentUserID -- cgit v1.2.3