(self)
Navigate once backwards
Navigate once backwards
Navigate once backwards
def back(self):
        '''Navigate once backwards'''
        if self._about:
            # The first route to be processed will push the initial histidx
            # value (-1) to 0. We cannot go beyond that route. Hence we use -1
            # here, because if only one route is there we cannot move 0 - 1 =
            # -1 and the check fails
            hidx = self._histidx - 1
            if hidx >= 0:
                self._histidx -= 1
                self._onpopstate(self._history[hidx])
        else:
            window.history.back()
def back ( self ) : if self . _about : # The first route to be processed will push the initial histidx # value (-1) to 0. We cannot go beyond that route. Hence we use -1 # here, because if only one route is there we cannot move 0 - 1 = # -1 and the check fails hidx = self . _histidx - 1 if hidx >= 0 : self . _histidx -= 1 self . _onpopstate ( self . _history [ hidx ] ) else : window . history . back ( )