Class: W3C::DOM3::UIEvent

Inherits:
W3C::DOM4::Event show all
Defined in:
lib/w3c/dom3/ui_event.rb

Direct Known Subclasses

KeyboardEvent

Constant Summary

Constants inherited from W3C::DOM4::Event

W3C::DOM4::Event::AT_TARGET, W3C::DOM4::Event::BUBBLING_PHASE, W3C::DOM4::Event::CAPTURING_PHASE, W3C::DOM4::Event::NONE

Instance Method Summary collapse

Methods inherited from W3C::DOM4::Event

#preventDefault, #stopImmediatePropagation, #stopPropagation

Constructor Details

#initialize(type, eventInitDict = {}) ⇒ Object

Returns self.

Parameters:

  • type (String)
  • eventInitDict (Hash) (defaults to: {})
  • :view (Hash)

    a customizable set of options

  • :detail (Hash)

    a customizable set of options



16
17
18
19
20
# File 'lib/w3c/dom3/ui_event.rb', line 16

def initialize(type, eventInitDict={})
  @view = eventInitDict[:view] || nil 
  @detail = eventInitDict[:detail] || 0
  super(type, eventInitDict)
end