removed glob.allNoteIds which wasn't used anymore

This commit is contained in:
azivner 2017-11-19 22:32:59 -05:00
parent d98a5b6299
commit 8a1c477b8a
4 changed files with 0 additions and 7 deletions

View File

@ -1,7 +1,6 @@
"use strict";
const glob = {
allNoteIds: [],
activeDialog: null
};

View File

@ -151,8 +151,6 @@ const noteEditor = (function() {
extraClasses: isProtected ? "protected" : ""
};
glob.allNoteIds.push(result.note_tree_id);
newNoteCreated = true;
if (target === 'after') {

View File

@ -88,8 +88,6 @@ const noteTree = (function() {
childToParents[note.note_id].push(note.note_pid);
}
glob.allNoteIds = Object.keys(notesMap);
return prepareNoteTreeInner('root');
}

View File

@ -56,8 +56,6 @@ const treeChanges = (function() {
node.getParent().renderTitle();
}
glob.allNoteIds = glob.allNoteIds.filter(e => e !== node.key);
recentNotes.removeRecentNote(node.note_tree_id);
let next = node.getNextSibling();