# File lib/faye/websocket/api/event.rb, line 16 def init_event(event_type, can_bubble, cancelable) @type = event_type @bubbles = can_bubble @cancelable = cancelable end
# File lib/faye/websocket/api/event.rb, line 25 def prevent_default end
# File lib/faye/websocket/api/event.rb, line 22 def stop_propagation end
# File lib/faye/websocket/api/event.rb, line 51 def Event.create(type, options = {}) TYPES[type].new(type, options) end
# File lib/faye/websocket/api/event.rb, line 11 def initialize(event_type, options) @type = event_type options.each { |key, value| instance_variable_set("@#{key}", value) } end