mirror of
https://github.com/divkit/divkit.git
synced 2026-06-06 20:07:59 +00:00
Fix components count
commit_hash:d23dc2ab50375257e2f3a6521dcebe85773985d7
This commit is contained in:
@@ -151,10 +151,11 @@
|
||||
type: 'mount' | 'destroy';
|
||||
node: HTMLElement;
|
||||
}) {
|
||||
++count;
|
||||
if (event.type === 'mount') {
|
||||
++count;
|
||||
components.set(event.node, event);
|
||||
} else if (event.type === 'destroy') {
|
||||
--count;
|
||||
components.delete(event.node);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user