Problem/Motivation
The help text for "Disable JavaScripts" in 7.x contains a reference to libraries, which is a D8 feature.
If you also want to conditionally load a library, place that as the third parameter, following another | (vertical bar). Example: modules/custom/custom_module/js/custom.js|customModule|custom_module/custom_module.
If your script file does not attach to Drupal.attributes, you may skip the second parameter. Example: modules/custom/custom_module/js/custom.js||custom_module/custom_module
Note that Drupal behavior name and library parameters are both optional
The text quoted above should be fixed to remove references to libraries.
Comments
Comment #2
svenryen commentedComment #4
svenryen commented