- core
- Context
- ElementAllocator
- ElementOutput
- Engine
- Entity
- EventEmitter
- EventHandler
- Group
- Modifier
- OptionsManager
- RenderNode
- Scene
- SpecParser
- Transform
- View
- ViewSequence
- events
- EventArbiter
- EventFilter
- EventMapper
- inputs
- Accumulator
- GenericSync
- MouseSync
- PinchSync
- RotateSync
- ScaleSync
- ScrollSync
- TouchSync
- TouchTracker
- TwoFingerSync
- math
- Matrix
- Quaternion
- Random
- Utilities
- Vector
- modifiers
- Draggable
- Fader
- ModifierChain
- StateModifier
- physics
- PhysicsEngine
- physics/bodies
- Body
- Circle
- Particle
- Rectangle
- physics/constraints
- Surface
- Collision
- Constraint
- Curve
- Distance
- Snap
- Wall
- Walls
- physics/forces
- Drag
- Force
- Repulsion
- RotationalDrag
- RotationalSpring
- Spring
- VectorField
- physics/integrators
- SymplecticEuler
- surfaces
- CanvasSurface
- ContainerSurface
- ImageSurface
- InputSurface
- TextareaSurface
- VideoSurface
- transitions
- CachedMap
- Easing
- MultipleTransition
- SnapTransition
- SpringTransition
- Transitionable
- TransitionableTransform
- TweenTransition
- WallTransition
- utilities
- KeyCodes
- Timer
- Utility
- views
- ContextualView
- Deck
- DrawerLayout
- EdgeSwapper
- FlexibleLayout
- Flipper
- GridLayout
- HeaderFooterLayout
- Lightbox
- RenderController
- ScrollContainer
- Scroller
- Scrollview
- SequentialLayout
- widgets
- NavigationBar
- TabBar
EventEmitter
EventEmitter represents a channel for events.
Overview
Methods
emit
                  on
                  addListener
                  removeListener
                  bindThis
                Methods
emit(type, event)
Trigger an event, sending to all downstream handlers listening for provided 'type' key.
Parameters
type
                    String
                    event type key (for example, 'click')
                    
                  event
                    Object
                    event data
                    
                  Returns
EventHandler
                    this
                  on(type, handler)
Bind a callback function to an event type handled by this object.
Parameters
type
                    String
                    event type key (for example, 'click')
                    
                  handler
                    Function(string, Object)
                    callback
                    
                  Returns
EventHandler
                    this
                  addListener()
Alias for "on".
removeListener(type, handler)
Unbind an event by type and handler. This undoes the work of "on".
Parameters
type
                    String
                    event type key (for example, 'click')
                    
                  handler
                    Function
                    function object to remove
                    
                  Returns
EventEmitter
                    this
                  bindThis(owner)
Call event handlers with this set to owner.
Parameters
owner
                    Object
                    object this EventEmitter belongs to