MCPcopy
hub / github.com/microsoft/SandDance / reloadStyles

Function reloadStyles

docs/app/js/sanddance-app.js:27156–27168  ·  view source on GitHub ↗

* Reloads styles.

()

Source from the content-addressed store, hash-verified

27154/**
27155 * Reloads styles.
27156 */ function reloadStyles() {
27157 if (_themeState.theme) {
27158 var themableStyles = [];
27159 for(var _i = 0, _a = _themeState.registeredThemableStyles; _i < _a.length; _i++){
27160 var styleRecord = _a[_i];
27161 themableStyles.push(styleRecord.themableStyle);
27162 }
27163 if (themableStyles.length > 0) {
27164 clearStyles(1 /* onlyThemable */ );
27165 applyThemableStyles([].concat.apply([], themableStyles));
27166 }
27167 }
27168}
27169function detokenize(styles) {
27170 if (styles) styles = resolveThemableArray(splitStyles(styles)).styleString;
27171 return styles;

Callers 1

loadThemeFunction · 0.85

Calls 2

clearStylesFunction · 0.85
applyThemableStylesFunction · 0.85

Tested by

no test coverage detected