don't allow deleting hoisted note + other related fixes, closes #488

This commit is contained in:
zadam
2019-04-16 21:40:04 +02:00
parent 3760835608
commit 064a11d872
12 changed files with 66 additions and 54 deletions

View File

@@ -60,14 +60,6 @@ function assertArguments() {
}
}
function isTopLevelNode(node) {
return isRootNode(node.getParent());
}
function isRootNode(node) {
return node.data.noteId === "root";
}
function escapeHtml(str) {
return $('<div/>').text(str).html();
}
@@ -211,8 +203,6 @@ export default {
isElectron,
isMac,
assertArguments,
isTopLevelNode,
isRootNode,
escapeHtml,
stopWatch,
formatValueWithWhitespace,