lib/volt/models/persistors/array_store.rb
# Called when an event is removed and we no longer want to keep in
# sync with the database.
Called when an event is removed and we no longer want to keep in
sync with the database.
Called when an event is removed and we no longer want to keep in sync with the database .
def stop_listening
      if @query_changed_listener
        @query_changed_listener.remove
        @query_changed_listener = nil
      end
      if @query_listener
        @query_listener.remove_store(self)
        @query_listener = nil
      end
      @state = :dirty
    end
def stop_listening if @query_changed_listener @query_changed_listener . remove @query_changed_listener = nil end if @query_listener @query_listener . remove_store ( self ) @query_listener = nil end @state = :dirty end
Called when an event is removed and we no longer want to keep in
sync with the database.
Called when an event is removed and we no longer want to keep in sync with the database .