more cleanup

This commit is contained in:
azivner
2017-11-14 23:01:23 -05:00
parent 98a2322b37
commit c2ad14ba18
6 changed files with 15 additions and 17 deletions

View File

@@ -7,7 +7,7 @@ const treeUtils = (function() {
return (node.getParent() === null || node.getParent().key === "root_1") ? "root" : node.getParent().key;
}
function getParentEncryption(node) {
function getParentProtectedStatus(node) {
return node.getParent() === null ? 0 : node.getParent().data.is_protected;
}
@@ -64,7 +64,7 @@ const treeUtils = (function() {
return {
getParentKey,
getParentEncryption,
getParentProtectedStatus,
getNodeByKey,
activateNode,
getNoteTitle,