comment is no longer true

boundary-batch-nullpointer-fix
Rich Harris 6 days ago
parent 075a8b9826
commit b88b4e8ef8

@ -94,9 +94,7 @@ export class Batch {
/** /**
* When the batch is committed (and the DOM is updated), we need to remove old branches * When the batch is committed (and the DOM is updated), we need to remove old branches
* and append new ones by calling the functions added inside (if/each/key/etc) blocks. * and append new ones by calling the functions added inside (if/each/key/etc) blocks
* Key is a function that returns the block effect because #callbacks will be called before
* the block effect reference exists, so we need to capture it in a closure.
* @type {Map<Effect, () => void>} * @type {Map<Effect, () => void>}
*/ */
#callbacks = new Map(); #callbacks = new Map();

Loading…
Cancel
Save