extensions/amp-story/1.0/amp-story-system-layer.js
/**
   * Checks if the story has a sidebar in order to display the icon representing
   * the opening of the sidebar.
   * @param {boolean} hasSidebar
   * @private
   */
Checks if the story has a sidebar in order to display the icon representing
the opening of the sidebar.
@param {boolean} hasSidebar
@private
Checks if the story has a sidebar in order to display the icon representing the opening of the sidebar . @param { boolean } hasSidebar @private
onHasSidebarStateUpdate_(hasSidebar) {
    if (hasSidebar) {
      this.getShadowRoot().setAttribute(HAS_SIDEBAR_ATTRIBUTE, '');
    } else {
      this.getShadowRoot().removeAttribute(HAS_SIDEBAR_ATTRIBUTE);
    }
  }
onHasSidebarStateUpdate_ ( hasSidebar ) { if ( hasSidebar ) { this . getShadowRoot ( ) . setAttribute ( HAS_SIDEBAR_ATTRIBUTE , '' ) ; } else { this . getShadowRoot ( ) . removeAttribute ( HAS_SIDEBAR_ATTRIBUTE ) ; } }
Checks if the story has a sidebar in order to display the icon representing
 the opening of the sidebar.
Checks if the story has a sidebar in order to display the icon representing the opening of the sidebar .