MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / onColorsChanged

Method onColorsChanged

tools/xsbug/main.js:231–242  ·  view source on GitHub ↗
(application)

Source from the content-addressed store, hash-verified

229 }
230 }
231 onColorsChanged(application) {
232 let appearance = this.colors;
233 if (appearance == 2)
234 appearance = this.appearance;
235 buildAssets(appearance);
236 if (application.first) {
237 application.distribute("onMachineDeselected", this.currentMachine, this.currentTab);
238 application.replace(application.first, new MainContainer(this));
239 this.doOpenView();
240 application.distribute("onMachineSelected", this.currentMachine, this.currentTab);
241 }
242 }
243 // onDisplaying deferred to onAppearanceChanged so that appearance is known
244 selectMachine(machine, tab = 0) {
245 if ((this.currentMachine != machine) || (this.currentTab != tab)) {

Callers 1

onAppearanceChangedMethod · 0.95

Calls 4

doOpenViewMethod · 0.95
buildAssetsFunction · 0.90
distributeMethod · 0.80
replaceMethod · 0.80

Tested by

no test coverage detected