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.es6.js
index db561539a94941f3e6d788a5284d7cb3c3fa2dcd..de24038187aa53ea97464717e1baf0192468dcc5 100644 (file)
@@ -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.
    *
     attach(context) {
       const currentUserID = parseInt(drupalSettings.user.uid, 10);
       $('[data-comment-user-id]')
-        .filter(function () {
-          return parseInt(this.getAttribute('data-comment-user-id'), 10) === currentUserID;
+        .filter(function() {
+          return (
+            parseInt(this.getAttribute('data-comment-user-id'), 10) ===
+            currentUserID
+          );
         })
         .addClass('by-viewer');
     },
   };
-}(jQuery, Drupal, drupalSettings));
+})(jQuery, Drupal, drupalSettings);