Class: W3C::DOM4::Event
- Inherits:
-
Object
- Object
- W3C::DOM4::Event
- Defined in:
- lib/w3c/dom4/event.rb
Overview
Direct Known Subclasses
Constant Summary collapse
- NONE =
0
- CAPTURING_PHASE =
1
- AT_TARGET =
2
- BUBBLING_PHASE =
3
Instance Method Summary collapse
-
#initialize(type, eventInitDict = {}) ⇒ Event
constructor
A new instance of Event.
- #preventDefault ⇒ Object
- #stopImmediatePropagation ⇒ Object
- #stopPropagation ⇒ Object
Constructor Details
#initialize(type, eventInitDict = {}) ⇒ Event
Returns a new instance of Event.
14 15 16 17 18 19 20 |
# File 'lib/w3c/dom4/event.rb', line 14 def initialize(type, eventInitDict={}) @type = type @bubbles = eventInitDict[:bubbles] || false @cancelable = eventInitDict[:cancelable] || false @timeStamp = Time.now.to_i @isTrusted = true end |
Instance Method Details
#preventDefault ⇒ Object
31 |
# File 'lib/w3c/dom4/event.rb', line 31 def preventDefault() end |
#stopImmediatePropagation ⇒ Object
30 |
# File 'lib/w3c/dom4/event.rb', line 30 def stopImmediatePropagation() end |
#stopPropagation ⇒ Object
29 |
# File 'lib/w3c/dom4/event.rb', line 29 def stopPropagation() end |