Rewrite the JavaScript code to use behaviors and plain JavaScript

Created on 20 June 2020, over 4 years ago
Updated 25 July 2024, 5 months ago

The JavaScript code used by the JavaScript Example module needs to:

  • Be wrapped in an anonymous function
  • Use Drupal behaviors
  • Use once()
  • Avoid to use jQuery

The last point avoids that ESLint reports errors about using $.css().

📌 Task
Status

Fixed

Version

4.0

Component

JavaScript Example

Created by

🇦🇺Australia jannakha Brisbane!

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

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024