Class: Reactor
Defined in: adventure/Reactor.js, line 6
Reactor manages event listening for custom events, by creating a DOM element to do the listening, and then hooking into the element's DOM methods. Reactor is created automatically by Game. This is an internal class that authors should not need to construct or modify.
Private Constructor:
var foo = new adventurejs.Reactor(game)
Parameters:
-
game
Game
A reference to the game instance.
- Index
- Methods
- Properties
Index
Methods Collapse all |
Properties |
addEventListener :Object
Defined in: adventure/Reactor.js, line 50
Default value: {}
dispatchEvent :Object
Defined in: adventure/Reactor.js, line 66
Default value: {}
game :Object
Defined in: adventure/Reactor.js, line 28
Default value: {}
removeEventListener :Object
Defined in: adventure/Reactor.js, line 57
Default value: {}
target :HTMLElement
Defined in: adventure/Reactor.js, line 35
Default value: {}