mirror of
https://github.com/Tonejs/Tone.js
synced 2025-01-14 12:53:59 +00:00
Merge pull request #846 from vibertthio/fix-comment-typo
Fix comment typo in ContextInitialization.ts
This commit is contained in:
commit
bc487c8200
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> = [];
|
const notifyCloseContext: Array<(ctx: Context) => void> = [];
|
||||||
|
|
||||||
|
@ -37,6 +37,6 @@ export function onContextClose(cb: (ctx: Context) => void): void {
|
||||||
}
|
}
|
||||||
|
|
||||||
export function closeContext(ctx: Context): void {
|
export function closeContext(ctx: Context): void {
|
||||||
// add any additional modules
|
// remove any additional modules
|
||||||
notifyCloseContext.forEach(cb => cb(ctx));
|
notifyCloseContext.forEach(cb => cb(ctx));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue