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

Method doCloseFiles

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

Source from the content-addressed store, hash-verified

448 application.distribute("onPathChanged", this.path);
449 }
450 doCloseFiles() {
451 let items = this.history.items;
452 items.length = 0;
453 this.path = undefined;
454 this.state = undefined;
455 this.doOpenView();
456 application.distribute("onPathChanged", this.path);
457 }
458 doCloseProfile(profile) {
459 const index = this.profiles.indexOf(profile);
460 if (index >= 0) {

Callers

nothing calls this directly

Calls 2

doOpenViewMethod · 0.95
distributeMethod · 0.80

Tested by

no test coverage detected