lib/volt/models/persistors/array_store.rb
def stop_listening(stop_watching_query = true)
        return if @has_events
        return if @fetch_promises && @fetch_promises.size > 0

        @query_computation.stop if @query_computation && stop_watching_query

        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.
Called when an event is removed and we no longer want to keep in sync with the database .
def stop_listening(stop_watching_query = true)
        return if @has_events
        return if @fetch_promises && @fetch_promises.size > 0
        @query_computation.stop if @query_computation && stop_watching_query
        if @query_listener
          @query_listener.remove_store(self)
          @query_listener = nil
        end
        @state = :dirty
      end
def stop_listening ( stop_watching_query = true ) return if @has_events return if @fetch_promises && @fetch_promises . size > 0 @query_computation . stop if @query_computation && stop_watching_query 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 .
stop_watching_query