lib/volt/reactive/event_chain.rb
def remove_event(event)
    if @event_counts[event]
      count = @event_counts[event] -= 1

      if count == 0
        @event_chain.each_pair do |chain_listener,listeners|
          listeners[event].remove# if listeners[event]
          listeners.delete(event)
        end

        # Also remove the event count
        @event_counts.delete(event)
      end
    end
  end
# Removes the event from all events in all objects
Removes the event from all events in all objects
Removes the event from all events in all objects
def remove_event(event)
    if @event_counts[event]
      count = @event_counts[event] -= 1
      if count == 0
        @event_chain.each_pair do |chain_listener,listeners|
          listeners[event].remove
          listeners.delete(event)
        end
        @event_counts.delete(event)
      end
    end
  end
def remove_event ( event ) if @event_counts [ event ] count = @event_counts [ event ] -= 1 if count == 0 @event_chain . each_pair do | chain_listener , listeners | listeners [ event ] . remove listeners . delete ( event ) end @event_counts . delete ( event ) end end end
Removes the event from all events in all objects
Removes the event from all events in all objects
# if listeners[event] # Also remove the event count
event