delegate.createDelegate ⇒ Delegate
Kind: static constant of delegate
Param | Type | Description |
---|---|---|
root | HTMLElement |
Delegate root |
delegate.delegate : Delegate
Delegate instance with root of window.document
Kind: static constant of delegate
Kind: global class
Subscribe an event
Kind: instance method of Delegate
Param | Type | Description |
---|---|---|
eventName | String |
Event name |
element | HTMLElement |
Delegate node |
selector | String | Null |
Selector |
callback | function |
Callback |
Unsubscribe an event
Kind: instance method of Delegate
Param | Type | Description |
---|---|---|
[eventName] | String |
Event name |
[element] | HTMLElement |
Delegate node |
[selector] | String | Null |
Selector |
[callback] | function |
Callback |
Set delegate root
Kind: instance method of Delegate
Param | Type | Description |
---|---|---|
newRoot | HTMLElement |
Delegate root |
Destroy delegate
Kind: instance method of Delegate