Commit d398a56c authored by Jay's avatar Jay Committed by jay
Browse files

Extracts updating the stack to the ABC

parent 7542bc18
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -68,6 +68,12 @@ class Observable(object):
        # Reset attributes (could also cache)
        self._notify_subscribers(self)

    @abc.abstractmethod
    def _update_stack(self, state):
        self._action_stack.append(state)
        self._current_action_stack = len(self._action_stack) - 1
        self._notify_subscribers

    @abc.abstractmethod
    def _clean_attrs(self):
        pass