code: function (newPag) {
      var oldPag = this.get('paginator');
      if (oldPag && newPag !== oldPag) {
          oldPag.unsubscribe('changeRequest', this.onPaginatorChangeRequest, this, true);
      }
      if (newPag) {
          newPag.subscribe('changeRequest', this.onPaginatorChangeRequest, this, true);
      }
  }
docs: PAGINATION 
  Method executed during set() operation for the "paginator" attribute.
  Adds and/or severs event listeners between DataTable and Paginator
  
  @method _updatePaginator
  @param newPag {Paginator} Paginator instance (or null) for DataTable to use
  @private