code: function (initialIndex, isHorizontal) {
                      var currPage = null;
                      // Every call to offsetWidth/offsetHeight causes an switch from Script to Layout which affects
                      // the performance of the control. The values will be cached and will be updated when a resize occurs.
                      this._panningDivContainerOffsetWidth = this._panningDivContainer.offsetWidth;
                      this._panningDivContainerOffsetHeight = this._panningDivContainer.offsetHeight;
                      this._isHorizontal = isHorizontal;
                      if (!this._currentPage) {
                          this._bufferAriaStartMarker = _Global.document.createElement("div");
                          this._bufferAriaStartMarker.id = uniqueID(this._bufferAriaStartMarker);
                          this._panningDiv.appendChild(this._bufferAriaStartMarker);
  
                          this._currentPage = this._createFlipPage(null, this);
                          currPage = this._currentPage;
                          this._panningDiv.appendChild(currPage.pageRoot);
  
                          // flipPageBufferCount is added here twice.
                          // Once for the buffer prior to the current item, and once for the buffer ahead of the current item.
                          var pagesToInit = 2 * this._bufferSize;
                          for (var i = 0; i < pagesToInit; i++) {
                              currPage = this._createFlipPage(currPage, this);
                              this._panningDiv.appendChild(currPage.pageRoot);
                          }
  
                          this._bufferAriaEndMarker = _Global.document.createElement("div");
                          this._bufferAriaEndMarker.id = uniqueID(this._bufferAriaEndMarker);
                          this._panningDiv.appendChild(this._bufferAriaEndMarker);
                      }
  
                      this._prevMarker = this._currentPage.prev.prev;
  
                      if (this._itemsManager) {
                          this.setNewItemsManager(this._itemsManager, initialIndex);
                      }
                  }
docs: Public Methods