HOTFIX: performance issues relating to deepcopy-ing large objects
...oops
This commit is contained in:
parent
0626143f42
commit
3b5660d141
1 changed files with 7 additions and 7 deletions
14
js/atree.js
14
js/atree.js
|
@ -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;
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue