Event

afterUpdate

Dispatched after an update has been applied, just before the update event.

Syntax

  • doodle.addEventListener('afterUpdate', handler)

afterUpdate and update carry the same meaning; use whichever reads better next to beforeUpdate.

Examples

const doodle = document.querySelector('css-doodle');

doodle.addEventListener('beforeUpdate', () => console.time('update'));
doodle.addEventListener('afterUpdate', () => console.timeEnd('update'));

See also