remove the auto-created menu from the DOM after it disappears, to save memory
This commit is contained in:
parent
b12271ce21
commit
63c16be86d
@ -66,6 +66,13 @@ function ContextMenu()
|
|||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
|
elem.addEventListener("transitionend", function(e)
|
||||||
|
{
|
||||||
|
if (!System.ClassList.Contains(this, "uwt-visible"))
|
||||||
|
{
|
||||||
|
this.remove();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
for (var i = 0; i < this.Items.length; i++)
|
for (var i = 0; i < this.Items.length; i++)
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user