Skip to content
Snippets Groups Projects
Verified Commit db912fe9 authored by Théodore Biadala's avatar Théodore Biadala
Browse files

Issue #3176386 by tom konda, bnjmnm: Replace Array.prototype.forEach.call usages that aren't needed

parent 96c70753
Branches
No related tags found
1 merge request!11983Issue #3521857 by jwilson3: Update file type icons to use SVG
Pipeline #465203 passed with warnings
Pipeline: drupal

#465232

    Pipeline: drupal

    #465216

      Pipeline: drupal

      #465208

        ......@@ -174,12 +174,11 @@
        * @name Drupal.Message~messageDefinition.clear
        */
        clear() {
        Array.prototype.forEach.call(
        this.messageWrapper.querySelectorAll('[data-drupal-message-id]'),
        (message) => {
        this.messageWrapper
        .querySelectorAll('[data-drupal-message-id]')
        .forEach((message) => {
        this.messageWrapper.removeChild(message);
        },
        );
        });
        }
        /**
        ......
        ......@@ -159,19 +159,16 @@
        behaviors.layoutBuilderBlockDrag = {
        attach(context) {
        const regionSelector = '.js-layout-builder-region';
        Array.prototype.forEach.call(
        context.querySelectorAll(regionSelector),
        (region) => {
        Sortable.create(region, {
        draggable: '.js-layout-builder-block',
        ghostClass: 'ui-state-drop',
        group: 'builder-region',
        filter: '.contextual',
        onEnd: (event) =>
        Drupal.layoutBuilderBlockUpdate(event.item, event.from, event.to),
        });
        },
        );
        context.querySelectorAll(regionSelector).forEach((region) => {
        Sortable.create(region, {
        draggable: '.js-layout-builder-block',
        ghostClass: 'ui-state-drop',
        group: 'builder-region',
        filter: '.contextual',
        onEnd: (event) =>
        Drupal.layoutBuilderBlockUpdate(event.item, event.from, event.to),
        });
        });
        },
        };
        ......
        0% Loading or .
        You are about to add 0 people to the discussion. Proceed with caution.
        Please register or to comment