Class: React::Event

Inherits:
Object show all
Includes:
Native
Defined in:
lib/react/event.rb

Constant Summary collapse

BUILT_IN_EVENTS =
%w{onCopy onCut onPaste onKeyDown onKeyPress onKeyUp
onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick onDrag
onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop
onMouseDown onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver
onMouseUp onSelect onTouchCancel onTouchEnd onTouchMove onTouchStart onScroll onWheel}

Instance Method Summary collapse

Constructor Details

#initialize(native_event) ⇒ Event

Returns a new instance of Event.



72
73
74
# File 'lib/react/event.rb', line 72

def initialize(native_event)
  @native = native_event
end