Skip to content

Commit fb92cb6

Browse files
committed
fix comment
1 parent ee44523 commit fb92cb6

File tree

1 file changed

+2
-2
lines changed
  • libraries/load-themed-styles/src

1 file changed

+2
-2
lines changed

libraries/load-themed-styles/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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 = [];

0 commit comments

Comments
 (0)