code: function PDFRenderingQueue_renderView(view) {
        var state = view.renderingState;
        switch (state) {
          case RenderingStates.FINISHED:
            return false;
          case RenderingStates.PAUSED:
            this.highestPriorityPage = view.renderingId;
            view.resume();
            break;
          case RenderingStates.RUNNING:
            this.highestPriorityPage = view.renderingId;
            break;
          case RenderingStates.INITIAL:
            this.highestPriorityPage = view.renderingId;
            var continueRendering = function () {
              this.renderHighestPriority();
            }.bind(this);
            view.draw().then(continueRendering, continueRendering);
            break;
        }
        return true;
      }
docs: Render a page or thumbnail view. This calls the appropriate function
  based on the views state. If the view is already rendered it will return
  false.
  @param {IRenderableView} view