wdpr
    Preparing search index...

    Function initWdprRuntime

    • Initialise the wdpr runtime by scanning the DOM and binding event listeners for all interactive Wikidot elements found under root.

      Returns a WdprRuntime handle whose destroy() method removes every listener that was attached — call it before unmounting the content (e.g. on SPA route changes) to avoid memory leaks.

      Parameters

      • Optionaloptions: RuntimeOptions

        Configuration including root element and callbacks

      Returns WdprRuntime

      A handle with a destroy() cleanup method