small attribute optimizations

This commit is contained in:
zadam
2023-01-27 16:57:23 +01:00
parent 2b4dfaef7f
commit b0528b62d8
6 changed files with 79 additions and 59 deletions

View File

@@ -20,7 +20,7 @@ function isHoistedInHiddenSubtree() {
throw new Error(`Cannot find hoisted note ${hoistedNoteId}`);
}
return hoistedNote.hasAncestor('_hidden');
return hoistedNote.isHiddenCompletely();
}
function getHoistedNote() {