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

Method doOpenView

tools/xsbug/main.js:473–487  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

471 }
472
473 doOpenView() {
474 let Template = ErrorView;
475 let path = this.path;
476 if (path) {
477 if (path == "preferences")
478 Template = PreferencesView;
479 else if (system.fileExists(path))
480 Template = CodeView;
481 else {
482 }
483 }
484 else
485 Template = NoCodePane;
486 this.MAIN.replace(this.MAIN.first, new Template(this));
487 }
488 doToggleConsole(container) {
489 let divider = this.arrangement ? this.HORIZONTAL_MAIN_DIVIDER : this.VERTICAL_MAIN_DIVIDER;
490 divider.behavior.toggle(divider);

Callers 5

onAppearanceChangedMethod · 0.95
onColorsChangedMethod · 0.95
doCloseFileMethod · 0.95
doCloseFilesMethod · 0.95
selectFileMethod · 0.95

Calls 1

replaceMethod · 0.80

Tested by

no test coverage detected