LEVIATHAN v962456e · 962456eee1

moby · Dom

class ActionRegistry

since 0.1.0-alpha.1linux

Constructors

new

new(IComponent owner)

Fields

boundItems_

Array<IComponent> boundItems_

boundKeys_

Array<string> boundKeys_

enabled_

Array<bool> enabled_

handlers_

Array<() => void> handlers_

names_

Array<string> names_

owner_

IComponent owner_

Methods

add

add(string name, () => void handler) -> ActionRegistry

bindItem

bindItem(IComponent item, string key) -> void

fire

fire(string name) -> bool

has

has(string name) -> bool

indexOf

indexOf(string name) -> int

isEnabled

isEnabled(string name) -> bool

remove

remove(string name) -> void

setEnabled

setEnabled(string name, bool on) -> void