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
Disruption | Non disruptive, there are new libraries, but if you depended on the modified ones nothing should break. We can consider this an internal refactoring. |
---|