Skip to content

4.12.29

Latest

Choose a tag to compare

@github-actions github-actions released this 25 Jun 10:29
· 3 commits to main since this release

πŸ› Bug Fix

  • Event emitter (memory hygiene in SPA / Shadow DOM): EventEmitter stores its per-subject handler namespaces under a __JoditEventEmitterNamespaces<timestamp> property, but on off()/destruct() it only set that property to undefined instead of removing it. On long-lived subjects such as window, repeatedly creating and destroying editors in a single-page application left a growing pile of leftover undefined keys on the object. The property is now deleted on cleanup, so nothing lingers after destruct(). Reported by Ralf Pichler (uniquare.com, Jodit OEM).