Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / modules / comment / js / comment-by-viewer.js
1 /**
2 * DO NOT EDIT THIS FILE.
3 * See the following change record for more information,
4 * https://www.drupal.org/node/2815083
5 * @preserve
6 **/
7
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');
15     }
16   };
17 })(jQuery, Drupal, drupalSettings);