From 4434b0969cd6791606b788e48879c3af4adf024d Mon Sep 17 00:00:00 2001 From: reschan Date: Sat, 9 Jul 2022 11:14:38 +0700 Subject: [PATCH] remove extraneous/debug code --- js/atree.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/js/atree.js b/js/atree.js index 6f160a9..58e64f1 100644 --- a/js/atree.js +++ b/js/atree.js @@ -1063,7 +1063,6 @@ function set_connector_type(connector_info) { // left right up down lookup_str += 0; } } - console.log(lookup_str); connector_info.type = connector_dict[lookup_str].type; connector_info.rotate = connector_dict[lookup_str].rotate; @@ -1168,9 +1167,7 @@ function atree_set_edge(atree_connectors_map, parent, child, state) { let connector_img = atree_parse_connector(render_state, ctype, rotate); connector_img_elem.src = connector_img.img - if (connector_img.rotate != "flip") { - connector_elem.className = ""; - } + connector_elem.className = ""; connector_elem.classList.add("rotate-" + connector_img.rotate); connector_elem.replaceChildren(connector_img_elem); continue;