function switchDirection(el) {
    var leftStyle = el.style.left;
    el.style.left = el.style.right;
    el.style.right = leftStyle;
  }
/**
   * Helper function to switch directions for right-to-left languages.
   * @param {!HTMLElement} el Element whose style needs to change.
   */
Helper function to switch directions for right-to-left languages.
@param {!HTMLElement} el Element whose style needs to change.
Helper function to switch directions for right - to - left languages . @param { !HTMLElement } el Element whose style needs to change .
function switchDirection(el) {
    var leftStyle = el.style.left;
    el.style.left = el.style.right;
    el.style.right = leftStyle;
  }
function switchDirection ( el ) { var leftStyle = el . style . left ; el . style . left = el . style . right ; el . style . right = leftStyle ; }
Helper function to switch directions for right-to-left languages.
Helper function to switch directions for right - to - left languages .