onPreviousContext() {
    const contextPath = this.context.contextPath;
    return (event) => {
      let currentWindow = contextPath[contextPath.length - 1];
      // The id of the path elements is the same used for window.name
      const windowToGoBack = event.target.id;
      while (currentWindow.name !== windowToGoBack) {
        this.context.previous();
        currentWindow = contextPath[contextPath.length - 1];
      }
    };
  }
/**
   * Go back to the clicked path element
   * While the last element of the context path is not the corresponding
   * to the click path element, action this.context.previous() function
   */
Go back to the clicked path element
While the last element of the context path is not the corresponding
to the click path element, action this.context.previous() function
Go back to the clicked path element While the last element of the context path is not the corresponding to the click path element action this . context . previous () function
onPreviousContext() {
    const contextPath = this.context.contextPath;
    return (event) => {
      let currentWindow = contextPath[contextPath.length - 1];
      const windowToGoBack = event.target.id;
      while (currentWindow.name !== windowToGoBack) {
        this.context.previous();
        currentWindow = contextPath[contextPath.length - 1];
      }
    };
  }
onPreviousContext ( ) { const contextPath = this . context . contextPath ; return ( event ) => { let currentWindow = contextPath [ contextPath . length - 1 ] ; const windowToGoBack = event . target . id ; while ( currentWindow . name !== windowToGoBack ) { this . context . previous ( ) ; currentWindow = contextPath [ contextPath . length - 1 ] ; } } ; }
Go back to the clicked path element
 While the last element of the context path is not the corresponding
 to the click path element, action this.context.previous() function
Go back to the clicked path element While the last element of the context path is not the corresponding to the click path element action this . context . previous () function
// The id of the path elements is the same used for window.name