Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 293440

Split drupal.js

$
0
0

Problem/Motivation

Drupal.js mixes the behaviors attachment/dettachment with several API level functions.
Let's split those for having clearer dependencies.

Proposed resolution

  • drupal.init.js defines the Drupal object, and the attachBehaviors and detachBehaviors.
  • drupal.domready.js ensures that the behaviors are attached on domready (I think this deserves to be isolated).
  • drupal.js contains the rest.

Remaining tasks

Reviews + Manual testing

User interface changes

None.

API changes

Added new libraries, but there is no compatibility break with existing code.

Beta phase evaluation

Reference: https://www.drupal.org/core/beta-changes
DisruptionNon disruptive, there are new libraries, but if you depended on the modified ones nothing should break. We can consider this an internal refactoring.

Viewing all articles
Browse latest Browse all 293440

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>