docs: function (val) {
              var state = this.state,
                  pageNum = parseInt(val, 10);
              if (typeof val === 'string') {
                  if (val === Crocodoc.SCROLL_PREVIOUS && state.currentPage > 1) {
                      pageNum = this.calculatePreviousPage();
                  }
                  else if (val === Crocodoc.SCROLL_NEXT && state.currentPage < this.numPages) {
                      pageNum = this.calculateNextPage();
                  }
                  else if (!pageNum) {
                      return;
                  }
              }
              else if (!pageNum && pageNum !== 0) {
                  // pageNum is not a number
                  return;
              }
              pageNum = util.clamp(pageNum, 1, this.numPages);
              this.scrollToPage(pageNum);
          }