Class: Faye::WebSocket::Event
- Inherits:
-
Object
- Object
- Faye::WebSocket::Event
- Defined in:
- lib/faye/util/web_socket.rb
Constant Summary collapse
- CAPTURING_PHASE =
1
- AT_TARGET =
2
- BUBBLING_PHASE =
3
Instance Attribute Summary collapse
-
#bubbles ⇒ Object
readonly
Returns the value of attribute bubbles.
-
#cancelable ⇒ Object
readonly
Returns the value of attribute cancelable.
-
#current_target ⇒ Object
Returns the value of attribute current_target.
-
#data ⇒ Object
Returns the value of attribute data.
-
#event_phase ⇒ Object
Returns the value of attribute event_phase.
-
#target ⇒ Object
Returns the value of attribute target.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
- #init_event(event_type, can_bubble, cancelable) ⇒ Object
- #prevent_default ⇒ Object
- #stop_propagation ⇒ Object
Instance Attribute Details
#bubbles ⇒ Object (readonly)
Returns the value of attribute bubbles.
104 105 106 |
# File 'lib/faye/util/web_socket.rb', line 104 def bubbles @bubbles end |
#cancelable ⇒ Object (readonly)
Returns the value of attribute cancelable.
104 105 106 |
# File 'lib/faye/util/web_socket.rb', line 104 def cancelable @cancelable end |
#current_target ⇒ Object
Returns the value of attribute current_target.
105 106 107 |
# File 'lib/faye/util/web_socket.rb', line 105 def current_target @current_target end |
#data ⇒ Object
Returns the value of attribute data.
105 106 107 |
# File 'lib/faye/util/web_socket.rb', line 105 def data @data end |
#event_phase ⇒ Object
Returns the value of attribute event_phase.
105 106 107 |
# File 'lib/faye/util/web_socket.rb', line 105 def event_phase @event_phase end |
#target ⇒ Object
Returns the value of attribute target.
105 106 107 |
# File 'lib/faye/util/web_socket.rb', line 105 def target @target end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
104 105 106 |
# File 'lib/faye/util/web_socket.rb', line 104 def type @type end |
Instance Method Details
#init_event(event_type, can_bubble, cancelable) ⇒ Object
111 112 113 114 115 |
# File 'lib/faye/util/web_socket.rb', line 111 def init_event(event_type, can_bubble, cancelable) @type = event_type @bubbles = can_bubble @cancelable = cancelable end |
#prevent_default ⇒ Object
120 121 |
# File 'lib/faye/util/web_socket.rb', line 120 def prevent_default end |
#stop_propagation ⇒ Object
117 118 |
# File 'lib/faye/util/web_socket.rb', line 117 def stop_propagation end |