Nude Element API Docs - v0.1.3
    Preparing search index...

    Per-element collection of ElementProp wrappers.

    Hierarchy

    • Map
      • ElementProps
    Index

    Constructors

    • Construct the per-element collection and run the mount-time init pass. Pre-mount user writes (element.foo = …) and pre-mount attribute writes (setAttribute) leave traces on the element itself — a shadowing data property and an attribute, respectively — which each ElementProp's init pass picks up. So there's no separate initialize() step: the constructor allocates every wrapper and then runs init on each.

      The split is internal (allocate-all → init-all) so cascades during init always find existing wrappers in the Map — a wrapper materialized mid-cascade would fire its own default event in addition to the cascading update.

      Parameters

      • element: HTMLElement

        The element this collection belongs to.

      Returns ElementProps

    Properties

    element: HTMLElement
    ignoredAttributes: Set<string> = ...

    Accessors

    • get paused(): boolean

      Whether propchange dispatch is currently held. While true, writes append to the burst queue without dispatching; flipping to false sequentially coalesces undispatched runs (same prop in a row) and dispatches one event per run.

      Returns boolean

    • set paused(value: boolean): void

      Parameters

      • value: boolean

      Returns void

    Methods

    • Propagate an observed attribute change to every prop reflected from it.

      Parameters

      • name: string

        Attribute name.

      • OptionaloldValue: string

      Returns void