         @route "home",
             path: "/"
             template: t
-            onBeforeRun: ->
+            before: ->
                 self.sess "currentPage", 1
         @route "page",
             path: pr
             template: t
-            onBeforeRun: ->
+            before: ->
                 self.sess "currentPage", parseInt(@params.n)
   setTemplates: ->
     name = if @templateName is "" then @name else @templateName

  loading: (p) ->
    unless @infinite
      for k, v of @subscriptions
        @subscriptions[k].stop()
        delete @subscriptions[k]
      @_ready = false
      if p is @currentPage() and Session?
        @sess "ready", false

    Run again if something goes wrong and the page is still needed
    """
    @timeouts[page] = setTimeout ((page) ->
      if (page not in @pagesReceived or page not in @pagesRequested) and page in @neighbors @currentPage()
        console.log "Again #{page}"
        @recvPage page
    ).bind(@, page), @requestTimeout * 1000
    """
    Subscription may block unless deferred.
    """
