mirror of
https://github.com/Tonejs/Tone.js
synced 2024-12-27 03:53:07 +00:00
Fix comment typo in ContextInitialization.ts
This commit is contained in:
parent
38ca13539a
commit
63e57fb2e8
1 changed files with 2 additions and 2 deletions
|
@ -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));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue