Class CssRegistry

Manages the stylesheets inside the page keeping track of where each CSS file is and cleaning up the remaining whitespace when necessary.

Constructor

class CssRegistry()

Methods

get

CssRegistry.get()
Returns CssRenderer:
 the singleton instance

Returns the singleton instance.

getNewFiles

CssRegistry#getNewFiles(component, files)
Arguments:
  • component (String) – the component id to which the files belong
  • files (Array) – an array containing the file descriptor
Returns Array:

an array of files that are not loaded

Filters a list of CSS files for a specific component and returns the files that don’t exist inside the registry.

register

CssRegistry#register(component, css)
Arguments:
  • component (String) – the component id for which to register the css
  • css (Array) – the CSS contents to be registered
Returns Boolean:
 

weather the insert was successful or not

Register the css of a component to the registry.

unregister

CssRegistry#unregister(component)
Arguments:
  • component (String) – the component id for which to unregister the css

Unregister a component from the registry.

Table Of Contents

Previous topic

Class Context

Next topic

Class CssRenderer