]> git.proxmox.com Git - pve-manager.git/commit
ui: ResourceGrid: correctly remove ResourceStore listener
authorDominik Csapak <d.csapak@proxmox.com>
Thu, 20 May 2021 14:59:16 +0000 (16:59 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 20 May 2021 19:01:49 +0000 (21:01 +0200)
commit7663037544a096a11a4f70438849e6bd4c9981d5
treeeabb592b3ef4eecb548c11af77b42c98a7e112f6
parente492ab4dc8e5d599db27e462ec6b93b898a87666
ui: ResourceGrid: correctly remove ResourceStore listener

while the function in '.on' and '.un' are identical, they are not the
*same* function, thus the '.un' does not really remove the listener,
and we have leftover references to the grid which means it will never
really garbage-collected

instead, use '.mon' on the grid, which automatically cleans up the
listeners

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
www/manager6/grid/ResourceGrid.js