Module: lib/entities/DOMInteractModule

Stateful module with DOM auto selection

new (require("lib/entities/DOMInteractModule"))()

Members


dom :Object.<string, (Element|Object.<string, Element>)>

Type:
  • Object.<string, (Element|Object.<string, Element>)>

domHooksAfterInit :Array.<function()>

Type:
  • Array.<function()>

domHooksBeforeInit :Array.<function()>

Type:
  • Array.<function()>

hasDOMBeenInited :boolean

Type:
  • boolean

selectorIterable :string

Type:
  • string

selectorModule :string

Type:
  • string

selectorPart :string

Type:
  • string

Methods


initDOM()

Make DOM selection

onAfterDomInit(fn)

Add after fom init function
Parameters:
Name Type Description
fn function

onBeforeDomInit(fn)

Add before fom init function
Parameters:
Name Type Description
fn function