register
Registers a nodeList.
nodeLists.register(nodeList, unregistered, parent)
Registers a nodeList.
Parameters
-
nodeList
{Array<HTMLElement>}
An array of elements. This array will be kept live if child nodeLists update themselves.
-
unregistered
{function()}
OptionalAn optional callback that is called when the
nodeList
is replaced due to a parentNode list being updated. -
parent
{Array<HTMLElement>}
OptionalAn optional parent nodeList. If no parentNode list is found, the first element in
nodeList
's current nodeList will be used.
Returns
{Array<HTMLElement>}
The nodeList
passed to register
.