Remove some once compat methods for core/once

Created on 14 May 2024, about 1 month ago
Updated 28 May 2024, 19 days ago

Problem/Motivation

The library core/once was included in D9.2, see https://www.drupal.org/node/3158256 .
Blazy 3.x was previously planned to depend on D9.2, however to minimize PHP7 compat issues, a minimum D9.4 is required.
Thus, core/once is already in Blazy 3.x lifespan.

Blazy 2.x copied methods of core/once for easy migration into 3.x while staying compatible with D8.8 where jQuery.once was the deprecated solution.

One issue to watch out for is:

Proposed resolution

Remove copied methods, extend core/once and keep the current functionality to minimal disruptions.

Remaining tasks

Write a patch.

User interface changes

None.

API changes

None. The existing onceCompat was designed since 2.x to be interchangeable with core/once with some BC and an extra callback function to avoid repeated loop of elements usage.

Data model changes

None.

📌 Task
Status

Fixed

Version

3.0

Component

JavaScript

Created by

🇮🇩Indonesia gausarts

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024