Method .once change in Drupal 10

Created on 24 January 2024, 10 months ago
Updated 29 February 2024, 9 months ago

Problem/Motivation

When you update your Drupal to Drupal 10, .once method is deprecated, so you have to change it to his new structure.

Steps to reproduce

Change old method to new one. There an example -> $(once("Arbitrary key", "CSS selector", context)).

Proposed resolution

Change old method to new one. There an example -> $(once("Arbitrary key", "CSS selector", context)).

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Closed: duplicate

Version

1.0

Component

Code

Created by

πŸ‡ͺπŸ‡ΈSpain itrujillo

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

Comments & Activities

Production build 0.71.5 2024