MCPcopy Index your code
hub / github.com/hokein/electron-sample-apps / newFile

Function newFile

mini-code-editor/editor.js:35–39  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

33}
34
35function newFile() {
36 fileEntry = null;
37 hasWriteAccess = false;
38 handleDocumentChange(null);
39}
40
41function setFile(theFileEntry, isWritable) {
42 fileEntry = theFileEntry;

Callers 2

handleNewButtonFunction · 0.85
editor.jsFile · 0.85

Calls 1

handleDocumentChangeFunction · 0.85

Tested by

no test coverage detected