Problem/Motivation

This module uses the core/jquery.once library that has been deprecated and no longer available in Drupal 10. See https://www.drupal.org/node/3158256

Ideally, we should also remove the rest of jQuery use from the js/image_edit.js file, so that we can also drop the core/jquery library dependency.

Following the commit of #3297398: Automated Drupal 10 compatibility fixes, the module is otherwise already compatible with Drupal 10, so this issue, once solved, should add the Drupal 10 support to the core_version_requirement in the info.yml file (|| ^10).

Steps to reproduce

Proposed resolution

The module should use the core/once library.

Remaining tasks

User interface changes

API changes

Data model changes

CommentFileSizeAuthor
#5 remove-jqueryonce-3327907-5.patch25.4 KBroshni27

Comments

jcnventura created an issue. See original summary.

jcnventura’s picture

Issue summary: View changes
jcnventura’s picture

Title: Drupal 10 readiness: Remove use of query.once » Drupal 10 readiness: Remove use of query.once (also jquery)
Issue summary: View changes
roshni27’s picture

Assigned: Unassigned » roshni27

i am working on it.

roshni27’s picture

Assigned: roshni27 » Unassigned
Status: Active » Needs review
StatusFileSize
new25.4 KB

Please review the patch.