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.
114 115 116 |
# File 'lib/faye/util/web_socket.rb', line 114 def bubbles @bubbles end |
#cancelable ⇒ Object (readonly)
Returns the value of attribute cancelable.
114 115 116 |
# File 'lib/faye/util/web_socket.rb', line 114 def cancelable @cancelable end |
#current_target ⇒ Object
Returns the value of attribute current_target.
115 116 117 |
# File 'lib/faye/util/web_socket.rb', line 115 def current_target @current_target end |
#data ⇒ Object
Returns the value of attribute data.
115 116 117 |
# File 'lib/faye/util/web_socket.rb', line 115 def data @data end |
#event_phase ⇒ Object
Returns the value of attribute event_phase.
115 116 117 |
# File 'lib/faye/util/web_socket.rb', line 115 def event_phase @event_phase end |
#target ⇒ Object
Returns the value of attribute target.
115 116 117 |
# File 'lib/faye/util/web_socket.rb', line 115 def target @target end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
114 115 116 |
# File 'lib/faye/util/web_socket.rb', line 114 def type @type end |
Instance Method Details
#init_event(event_type, can_bubble, cancelable) ⇒ Object
121 122 123 124 125 |
# File 'lib/faye/util/web_socket.rb', line 121 def init_event(event_type, can_bubble, cancelable) @type = event_type @bubbles = can_bubble @cancelable = cancelable end |
#prevent_default ⇒ Object
130 131 |
# File 'lib/faye/util/web_socket.rb', line 130 def prevent_default end |
#stop_propagation ⇒ Object
127 128 |
# File 'lib/faye/util/web_socket.rb', line 127 def stop_propagation end |