Skip to content
Snippets Groups Projects
Commit ecfa7b5a authored by Alexander Rose's avatar Alexander Rose
Browse files

fix currentTheme not set in Representation.createMulti

parent bee3dc45
No related branches found
No related tags found
No related merge requests found
...@@ -226,7 +226,7 @@ namespace Representation { ...@@ -226,7 +226,7 @@ namespace Representation {
let version = 0; let version = 0;
const updated = new Subject<number>(); const updated = new Subject<number>();
const currentState = stateBuilder.create(); const currentState = stateBuilder.create();
const currentTheme = Theme.createEmpty(); let currentTheme = Theme.createEmpty();
let currentParams: P; let currentParams: P;
let currentProps: PD.Values<P>; let currentProps: PD.Values<P>;
...@@ -314,6 +314,7 @@ namespace Representation { ...@@ -314,6 +314,7 @@ namespace Representation {
} }
}, },
setTheme: (theme: Theme) => { setTheme: (theme: Theme) => {
currentTheme = theme;
for (let i = 0, il = reprList.length; i < il; ++i) { for (let i = 0, il = reprList.length; i < il; ++i) {
reprList[i].setTheme(theme); reprList[i].setTheme(theme);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment