synchronization of transactions using promise so only one can be active

This commit is contained in:
azivner
2017-11-28 17:24:08 -05:00
parent fd764f6163
commit 3d84f5c3b0
20 changed files with 194 additions and 180 deletions

View File

@@ -12,9 +12,9 @@ const treeChanges = (function() {
if (changeInPath) {
recentNotes.removeRecentNote(noteTree.getCurrentNotePath());
}
noteTree.setCurrentNotePathToHash(node);
noteTree.setCurrentNotePathToHash(node);
}
}
async function moveAfterNode(node, afterNode, changeInPath = true) {
@@ -28,9 +28,9 @@ const treeChanges = (function() {
if (changeInPath) {
recentNotes.removeRecentNote(noteTree.getCurrentNotePath());
}
noteTree.setCurrentNotePathToHash(node);
noteTree.setCurrentNotePathToHash(node);
}
}
// beware that first arg is noteId and second is noteTreeId!