code: function (e) {
          if (e && e.prevValue === e.newValue) {
              return;
          }
  
          var last = this.paginator.getTotalPages(),
              par  = this.current ? this.current.parentNode : null;
  
          if (this.paginator.getCurrentPage() !== last) {
              if (par && this.current === this.span) {
                  par.replaceChild(this.link,this.current);
                  this.current = this.link;
              }
          } else if (this.current === this.link) {
              if (par) {
                  par.replaceChild(this.span,this.current);
                  this.current = this.span;
              }
          }
      }
docs: Swap the link and span nodes if appropriate.
  @method update
  @param e {CustomEvent} The calling change event