function onClick(num, evt) {
      var _this = this;

      // Handle edge cases where number of pages has changed (i.e. if perPage changes)
      if (num > this.numberOfPages) {
        num = this.numberOfPages;
      } else if (num < 1) {
        num = 1;
      } // Update the v-model


      this.currentPage = num; // Emit event triggered by user interaction

      this.$emit('change', this.currentPage);
      this.$nextTick(function () {
        // Keep the current button focused if possible
        var target = evt.target;

        if ((0, _dom.isVisible)(target) && _this.$el.contains(target) && target.focus) {
          target.focus();
        } else {
          _this.focusCurrent();
        }
      });
    }
// These methods are used by the render function
These methods are used by the render function
These methods are used by the render function
function onClick(num, evt) {
      var _this = this;
      if (num > this.numberOfPages) {
        num = this.numberOfPages;
      } else if (num < 1) {
        num = 1;
      } 
      this.currentPage = num; 
      this.$emit('change', this.currentPage);
      this.$nextTick(function () {
        var target = evt.target;
        if ((0, _dom.isVisible)(target) && _this.$el.contains(target) && target.focus) {
          target.focus();
        } else {
          _this.focusCurrent();
        }
      });
    }
function onClick ( num , evt ) { var _this = this ; if ( num > this . numberOfPages ) { num = this . numberOfPages ; } else if ( num < 1 ) { num = 1 ; } this . currentPage = num ; this . $emit ( 'change' , this . currentPage ) ; this . $nextTick ( function ( ) { var target = evt . target ; if ( ( 0 , _dom . isVisible ) ( target ) && _this . $el . contains ( target ) && target . focus ) { target . focus ( ) ; } else { _this . focusCurrent ( ) ; } } ) ; }
These methods are used by the render function
These methods are used by the render function
// Handle edge cases where number of pages has changed (i.e. if perPage changes) // Update the v-model // Emit event triggered by user interaction // Keep the current button focused if possible