# File lib/apotomo/widget/event_methods.rb, line 77
    def respond_to_event(type, options={})
      # DISCUSS: do we need the :once option? how could we avoid re-adding?
      options = options.reverse_merge(:once => true,
                                      :with => type,
                                      :on   => widget_id)
      
      handler = InvokeEventHandler.new(:widget_id => options[:on], :state => options[:with])
      return if options[:once] and event_table.all_handlers_for(type, options[:from]).include?(handler)
      
      on(type, :call => handler, :from => options[:from])
    end