lib/hatemile/implementation/accessible_event_implementation.rb
##
# Add a type of event in element.
#
# @param element [Hatemile::Util::Html::HTMLDOMElement] The element.
# @param event [String] The type of event.
# @return [void]
Add a type of event in element.
Add a type of event in element .
def add_event_in_element(element, event)
        generate_main_scripts unless @main_script_added
        return if @script_list.nil?
        @id_generator.generate_id(element)
        @script_list.append_text(
          "#{event}Elements.push('#{element.get_attribute('id')}');"
        )
      end
def add_event_in_element ( element , event ) generate_main_scripts unless @main_script_added return if @script_list . nil? @id_generator . generate_id ( element ) @script_list . append_text ( "#{event}Elements.push('#{element.get_attribute('id')}');" ) end
Add a type of event in element.
Add a type of event in element .
None
void
element
None
event
The type of event.
The type of event .