diff --git a/public/javascripts/note_tree.js b/public/javascripts/note_tree.js index 68a560494..90a0842d3 100644 --- a/public/javascripts/note_tree.js +++ b/public/javascripts/note_tree.js @@ -616,7 +616,7 @@ const noteTree = (function() { node.visit(node => node.setExpanded(false)); } - $(document).bind('keydown', 'alt+c', collapseTree); + $(document).bind('keydown', 'alt+c', () => collapseTree()); // don't use shortened form since collapseTree() accepts argument function scrollToCurrentNote() { const node = getCurrentNode();