moved all global variables into glob object

This commit is contained in:
azivner
2017-11-04 00:05:08 -04:00
parent 3892666961
commit 44cfff09d9
13 changed files with 79 additions and 79 deletions

View File

@@ -47,10 +47,10 @@ function deleteNode(node) {
node.getParent().renderTitle();
}
globalAllNoteIds = globalAllNoteIds.filter(e => e !== node.key);
glob.allNoteIds = glob.allNoteIds.filter(e => e !== node.key);
// remove from recent notes
globalRecentNotes = globalRecentNotes.filter(note => note !== node.key);
glob.recentNotes = glob.recentNotes.filter(note => note !== node.key);
let next = node.getNextSibling();
if (!next) {