Merge pull request #846 from vibertthio/fix-comment-typo

Fix comment typo in ContextInitialization.ts
This commit is contained in:
Yotam Mann 2021-02-26 09:42:41 -05:00 committed by GitHub
commit bc487c8200
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -25,7 +25,7 @@ export function initializeContext(ctx: Context): void {
}
/**
* Array of callbacks to invoke when a new context is created
* Array of callbacks to invoke when a new context is closed
*/
const notifyCloseContext: Array<(ctx: Context) => void> = [];
@ -37,6 +37,6 @@ export function onContextClose(cb: (ctx: Context) => void): void {
}
export function closeContext(ctx: Context): void {
// add any additional modules
// remove any additional modules
notifyCloseContext.forEach(cb => cb(ctx));
}