-- VDS_RowRegistry
-- ============================================================================
-- Row-factory registry for WowScrollBoxList row kinds.
-- Each kind declares: build(row) once-only; init(row, data) every reacquire;
-- reset(row) clear kind-A chrome before kind-B init (Cookbook 03: cross-kind
-- pool contamination); extent (optional px height, default 36).

VDS = VDS or {}
VDS.RowRegistry = VDS.RowRegistry or { _registry = {} }

local R = VDS.RowRegistry

function R:Register(kind, spec)
    self._registry[kind] = spec
end

function R:Get(kind) return self._registry[kind] end
