diff -u b/core/modules/outside_in/js/off-canvas.es6.js b/core/modules/outside_in/js/off-canvas.es6.js --- b/core/modules/outside_in/js/off-canvas.es6.js +++ b/core/modules/outside_in/js/off-canvas.es6.js @@ -10,8 +10,10 @@ */ (function ($, Drupal, debounce, displace) { - // The minimum width to use body displace needs to match the width at which - // the off-canvas dialog will be 100% width. @see outside_in.module.css + /** + * The minimum width to use body displace needs to match the width at which + * the off-canvas dialog will be 100% width. @see outside_in.module.css + */ const minDisplaceWidth = 768; /** diff -u b/core/modules/outside_in/js/outside_in.es6.js b/core/modules/outside_in/js/outside_in.es6.js --- b/core/modules/outside_in/js/outside_in.es6.js +++ b/core/modules/outside_in/js/outside_in.es6.js @@ -97,7 +97,10 @@ $(quickEditItemSelector) .not(contextualItemsSelector) .on('click.outsidein', (e) => { - // For all non-contextual links or the contextual QuickEdit link close the off-canvas dialog. + /** + * For all non-contextual links or the contextual QuickEdit link + * close the off-canvas dialog. + */ if (!$(e.target).parent().hasClass('contextual') || $(e.target).parent().hasClass('quickedit')) { closeOffCanvas(); } @@ -156,20 +159,26 @@ * @listens event:drupalContextualLinkAdded */ $(document).on('drupalContextualLinkAdded', (event, data) => { - // Bind Ajax behaviors to all items showing the class. - // @todo Fix contextual links to work with use-ajax links in - // https://www.drupal.org/node/2764931. + /** + * Bind Ajax behaviors to all items showing the class. + * @todo Fix contextual links to work with use-ajax links in + * https://www.drupal.org/node/2764931. + */ Drupal.attachBehaviors(data.$el[0]); - - // Bind a listener to all 'Quick edit' links for blocks - // Click "Edit" button in toolbar to force Contextual Edit which starts - // Settings Tray edit mode also. + /** + * Bind a listener to all 'Quick edit' links for blocks. Click "Edit" button + * in toolbar to force Contextual Edit which starts Settings Tray edit + * mode also. + */ data.$el.find(blockConfigureSelector) .on('click.outsidein', () => { if (!isInEditMode()) { $(toggleEditSelector).trigger('click').trigger('click.outside_in'); } - // Always disable QuickEdit regardless of whether "EditMode" was just enabled. + /** + * Always disable QuickEdit regardless of whether "EditMode" was just + * enabled. + */ disableQuickEdit(); }); });