From 2a885ac5ef6c5c0e52b4210cf37aaecdd8b5775f Mon Sep 17 00:00:00 2001
From: josdejong
+
@@ -159,11 +160,15 @@ } document.getElementById('expandAll').onclick = function expandAll () { - testEditor.expandAll() + testEditor.expand(() => true) + } + + document.getElementById('expand2').onclick = function expandAll () { + testEditor.expand(path => path.length < 2) } document.getElementById('collapseAll').onclick = function collapseAll () { - testEditor.collapseAll() + testEditor.collapse(() => false) }