Skip to content

Commit

Permalink
Merge pull request #584 from luca992/patch-1
Browse files Browse the repository at this point in the history
Pop keys from registered after calling unregister
  • Loading branch information
capricorn86 committed Oct 6, 2022
2 parents 4033a53 + 5d4bae6 commit 4b79af0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/global-registrator/src/GlobalRegistrator.ts
Expand Up @@ -33,6 +33,7 @@ export default class GlobalRegistrator {
}
for (const key of this.registered) {
delete global[key];
this.registered.pop();
}
}
}

0 comments on commit 4b79af0

Please sign in to comment.