extensions/amp-story/1.0/amp-story-embedded-component.js
/**
   * Attaches listeners that listen for UI updates.
   * @private
   */
Attaches listeners that listen for UI updates.
@private
Attaches listeners that listen for UI updates . @private
initializeListeners_() {
    this.storeService_.subscribe(
      StateProperty.UI_STATE,
      (uiState) => {
        this.onUIStateUpdate_(uiState);
      },
      true 
    );
    this.storeService_.subscribe(StateProperty.CURRENT_PAGE_ID, () => {
      if (this.state_ === EmbeddedComponentState.FOCUSED) {
        this.close_();
      }
    });
  }
initializeListeners_ ( ) { this . storeService_ . subscribe ( StateProperty . UI_STATE , ( uiState ) => { this . onUIStateUpdate_ ( uiState ) ; } , true ) ; this . storeService_ . subscribe ( StateProperty . CURRENT_PAGE_ID , ( ) => { if ( this . state_ === EmbeddedComponentState . FOCUSED ) { this . close_ ( ) ; } } ) ; }
Attaches listeners that listen for UI updates.
Attaches listeners that listen for UI updates .
/** callToInitialize */ // Hide active tooltip when page switch is triggered by keyboard or // desktop buttons.