Add and use a constant for the collapsed CSS class

This commit is contained in:
Marc Jansen
2018-02-15 18:27:07 +01:00
parent a01b38bc36
commit 0aac821633
3 changed files with 16 additions and 6 deletions
+10
View File
@@ -48,6 +48,16 @@ export const CLASS_UNSUPPORTED = 'ol-unsupported';
export const CLASS_CONTROL = 'ol-control';
/**
* The CSS class that we'll give the DOM elements that are collapsed, i.e.
* to those elements which usually can be expanded.
*
* @const
* @type {string}
*/
export const CLASS_COLLAPSED = 'ol-collapsed';
/**
* Get the list of font families from a font spec. Note that this doesn't work
* for font families that have commas in them.