code: function () {
              var carousel = this;
  
              if (carousel.fireEvent(beforeHideEvent) !== false) {
                  carousel.removeClass(carousel.CLASSES.VISIBLE);
                  carousel.fireEvent(hideEvent);
              }
          }
docs: Hide the Carousel.
  
  @method hide
  @public