JavaScript in Add-on libraries

From RPTools Wiki
Revision as of 04:02, 7 July 2023 by Azhrei (talk | contribs) (Created page with "= JavaScript Context = A JavaScript context is created for an add-on to isolate the JavaScript environment from other add-ons. This context is not persisted across sessions or clients. It is destroyed when the add-on is removed and recreated when the add-on is updated. The {{code|onInit}} event for the add-on should be used to create any JavaScript objects that need to be created on startup of the add-on.")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

JavaScript Context

A JavaScript context is created for an add-on to isolate the JavaScript environment from other add-ons.

This context is not persisted across sessions or clients. It is destroyed when the add-on is removed and recreated when the add-on is updated. The onInit event for the add-on should be used to create any JavaScript objects that need to be created on startup of the add-on.