2 * DO NOT EDIT THIS FILE.
3 * See the following change record for more information,
4 * https://www.drupal.org/node/2815083
8 (function ($, Drupal, drupalSettings) {
9 Drupal.behaviors.commentByViewer = {
10 attach: function attach(context) {
11 var currentUserID = parseInt(drupalSettings.user.uid, 10);
12 $('[data-comment-user-id]').filter(function () {
13 return parseInt(this.getAttribute('data-comment-user-id'), 10) === currentUserID;
14 }).addClass('by-viewer');
17 })(jQuery, Drupal, drupalSettings);