File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
libraries/load-themed-styles/src Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -71,6 +71,7 @@ interface IThemableArrayResolveResult {
7171 styleString : string ;
7272 themable : boolean ;
7373}
74+
7475/**
7576 * In sync mode, styles are registered as style elements synchronously with loadStyles() call.
7677 * In async mode, styles are buffered and registered as batch in async timer for performance purpose.
@@ -260,8 +261,7 @@ export function loadTheme(theme: ITheme | undefined): void {
260261 * @option : specify which group of registered styles should be cleared.
261262 * Default to be both themable and non-themable styles will be cleared
262263 */
263- export function clearStyles ( option ?: ClearStyleOptions ) : void {
264- option = option || ClearStyleOptions . all ; // default is to clear all registered styles
264+ export function clearStyles ( option : ClearStyleOptions = ClearStyleOptions . all ) : void {
265265 if ( option === ClearStyleOptions . all || option === ClearStyleOptions . onlyNonThemable ) {
266266 clearStylesInternal ( _themeState . registeredStyles ) ;
267267 _themeState . registeredStyles = [ ] ;
You can’t perform that action at this time.
0 commit comments