Change record status: 
Project: 
Introduced in branch: 
8.1.x
Introduced in version: 
Description: 

Introducing a new parameter, behaviorList in Drupal.attachBehavior and Drupal.detachBehavior, and a new function Drupal.behaviorList.

// Call a subset of behaviors on the page.
Drupal.attachBehaviors(document, drupalSettings, ['AJAX', 'editor', 'formUpdated', 'escapeAdmin']);

// Override default behavior ordering.
Drupal.behaviorList = function (event, trigger) { return myCustomOrderedBehaviorsArray; };

The new API makes it possible to override the list and order of behaviors that run.

Impacts: 
Module developers
Updates Done (doc team, etc.)
Online documentation: 
Not done
Theming guide: 
Not done
Module developer documentation: 
Not done
Examples project: 
Not done
Coder Review: 
Not done
Coder Upgrade: 
Not done
Other: 
Other updates done
Details: 
Progress: