extensions/amp-story/1.0/amp-story-system-layer.js
/**
   * Reacts to RTL state updates and triggers the UI for RTL.
   * @param {boolean} rtlState
   * @private
   */
Reacts to RTL state updates and triggers the UI for RTL.
@param {boolean} rtlState
@private
Reacts to RTL state updates and triggers the UI for RTL . @param { boolean } rtlState @private
onRtlStateUpdate_(rtlState) {
    this.vsync_.mutate(() => {
      rtlState
        ? this.getShadowRoot().setAttribute('dir', 'rtl')
        : this.getShadowRoot().removeAttribute('dir');
    });
  }
onRtlStateUpdate_ ( rtlState ) { this . vsync_ . mutate ( ( ) => { rtlState ? this . getShadowRoot ( ) . setAttribute ( 'dir' , 'rtl' ) : this . getShadowRoot ( ) . removeAttribute ( 'dir' ) ; } ) ; }
Reacts to RTL state updates and triggers the UI for RTL.
Reacts to RTL state updates and triggers the UI for RTL .