Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Later
-
6.0.0-beta3
-
None
-
None
Description
There is some duplication of functionality between the ResourceReference and HeaderItem layers.
ResourceReferences should not be responsible for managing header contribution dependencies. This is the job of HeaderItem. ResourceReference's job is to provide a reference to a IResource. In that context, getDependencies() unnecessary.
ResourceReference is the layer below HeaderItem, but implementation problems of HeaderItem have crept into the lower layer.
In the same vein, IJavaScriptLibrarySettings should manage HeaderItems, not ResourceReferences. It is concerned with making sure that the correct header contributions have been made for the various Javascript things to work. This can be done entirely without ResourceReferences, but not without HeaderItems. The important things is the header items.
Working on some patches...