http://drupal.org/node/254940#attached_js

Individual elements now have the ability to define what JavaScript and cascading stylesheets are associated with them. This is stated in the #attached_js and #attached_css property.

but FormAPI documentation says

#attached

A keyed array of type => value pairs, where the type (most often 'css', 'js', and 'library') determines the loading technique, and the value provides the options presented to the loader function.

The latter is correct. I think this was changed some time in #561858: [Tests added] Fix drupal_add_js() and drupal_add_css() to work for AJAX requests too by adding lazy-load to AJAX framework

Comments

heyitspython’s picture

Assigned: Unassigned » heyitspython

Is there anything more to be done than replace the former with the latter? If no, I'll take care of it as soon as I can.

quietone’s picture

Issue summary: View changes
Status: Active » Closed (won't fix)

This is about a Drupal 6 and Drupal 7 page, which are both end of life.