extensions/amp-carousel/0.1/slidescroll.js
/**
   * Parses given value as integer and shows the slide with that index value
   * when element has been laid out.
   * @param {*} value
   */
Parses given value as integer and shows the slide with that index value
when element has been laid out.
@param {*} value
Parses given value as integer and shows the slide with that index value when element has been laid out . @param { * } value
showSlideWhenReady(value) {
    const index = parseInt(value, 10);
    if (isFinite(index) && index >= 0 && index < this.noOfSlides_) {
      if (this.slideIndex_ === null) {
        this.initialSlideIndex_ = index;
      } else {
        this.showSlide_(index);
      }
    } else {
      this.user().error(TAG, 'Invalid [slide] value: %s', value);
    }
  }
showSlideWhenReady ( value ) { const index = parseInt ( value , 10 ) ; if ( isFinite ( index ) && index >= 0 && index < this . noOfSlides_ ) { if ( this . slideIndex_ === null ) { this . initialSlideIndex_ = index ; } else { this . showSlide_ ( index ) ; } } else { this . user ( ) . error ( TAG , 'Invalid [slide] value: %s' , value ) ; } }
Parses given value as integer and shows the slide with that index value
 when element has been laid out.
Parses given value as integer and shows the slide with that index value when element has been laid out .
// If we haven't been laid out yet, set `initialSlideIndex_` instead.