From b27ac25d7ffdc29e916277f363c40050333be9d2 Mon Sep 17 00:00:00 2001 From: hppeng Date: Thu, 4 Aug 2022 23:41:00 -0700 Subject: [PATCH] Fix typos --- js/atree.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js/atree.js b/js/atree.js index 2896468..be9738a 100644 --- a/js/atree.js +++ b/js/atree.js @@ -947,11 +947,11 @@ function render_AT(UI_elem, list_elem, tree) { // Setup grid. for (let j = 0; j <= max_row; j++) { - const row = ('div', ['row'], { id: "atree-row-"+j }); + const row = make_elem('div', ['row'], { id: "atree-row-"+j }); for (let k = 0; k < 9; k++) { - row.appendChild(make_elem('div', ['col', 'px-0'], { style: "position: relative; aspect-ratio: 1/1;" })); + row.append(make_elem('div', ['col', 'px-0'], { style: "position: relative; aspect-ratio: 1/1;" })); } - UI_elem.appendChild(row); + UI_elem.append(row); } for (const _node of tree) {