HOTFIX: performance issues relating to deepcopy-ing large objects

...oops
This commit is contained in:
hppeng 2022-07-14 16:10:05 -07:00
parent 0626143f42
commit 3b5660d141

View file

@ -1017,20 +1017,20 @@ function render_AT(UI_elem, list_elem, tree) {
if (e.target !== this) {
return;
}
if (ability.tooltip_elem) {
ability.tooltip_elem.remove();
delete ability.tooltip_elem;
if (node_wrap.tooltip_elem) {
node_wrap.tooltip_elem.remove();
delete node_wrap.tooltip_elem;
}
ability.tooltip_elem = generateTooltip(UI_elem, node_elem, ability);
node_wrap.tooltip_elem = generateTooltip(UI_elem, node_elem, ability);
});
hitbox.addEventListener('mouseout', function(e) {
if (e.target !== this) {
return;
}
if (ability.tooltip_elem) {
ability.tooltip_elem.remove();
delete ability.tooltip_elem;
if (node_wrap.tooltip_elem) {
node_wrap.tooltip_elem.remove();
delete node_wrap.tooltip_elem;
}
});