Skip to content

Commit

Permalink
fix(components/friends/block): make $el configurable (#1096)
Browse files Browse the repository at this point in the history
During component destruction this property could
not be deleted, which could cause memory leaks
  • Loading branch information
shining-mind authored Jan 25, 2024
1 parent 46e449d commit 0ce8597
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/friends/block/class.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ class Block extends Friend {

if (originalNode != null && node != null && originalNode !== node) {
Object.defineProperty(this.ctx, '$el', {
configurable: true,
get: () => node
});

Expand Down

0 comments on commit 0ce8597

Please sign in to comment.