Skip to content

Commit

Permalink
Properly destroy dummy kapsule
Browse files Browse the repository at this point in the history
  • Loading branch information
vasturiano committed Aug 17, 2023
1 parent 9391348 commit 819ae12
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/kapsule-link.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ export default function(kapsulePropNames, kapsuleType) {
const propNames = kapsulePropNames instanceof Array ? kapsulePropNames : [kapsulePropNames];

const dummyK = new kapsuleType(); // To extract defaults
dummyK._destructor && dummyK._destructor();

return {
linkProp: function(prop) { // link property config
Expand Down

0 comments on commit 819ae12

Please sign in to comment.