extensions/amp-story/1.0/amp-story-system-layer.js
/**
   * Reacts to the presence of elements with playback on the page.
   * @param {boolean} pageHasElementsWithPlayback
   * @private
   */
Reacts to the presence of elements with playback on the page.
@param {boolean} pageHasElementsWithPlayback
@private
Reacts to the presence of elements with playback on the page . @param { boolean } pageHasElementsWithPlayback @private
onPageHasElementsWithPlaybackStateUpdate_(pageHasElementsWithPlayback) {
    this.vsync_.mutate(() => {
      toArray(
        this.getShadowRoot().querySelectorAll(
          '.i-amphtml-paused-display button'
        )
      ).forEach((button) => {
        button.disabled = !pageHasElementsWithPlayback;
      });
    });
  }
onPageHasElementsWithPlaybackStateUpdate_ ( pageHasElementsWithPlayback ) { this . vsync_ . mutate ( ( ) => { toArray ( this . getShadowRoot ( ) . querySelectorAll ( '.i-amphtml-paused-display button' ) ) . forEach ( ( button ) => { button . disabled = ! pageHasElementsWithPlayback ; } ) ; } ) ; }
Reacts to the presence of elements with playback on the page.
Reacts to the presence of elements with playback on the page .