iframeIndex(childWindow) {
    if (childWindow.parent != childWindow) {
      for (var i = 0; i < childWindow.parent.frames.length; i++) {
        if (childWindow.parent.frames[i] == childWindow) {
          return i;
        }
      }
    } else {
      return -1;
    }
  }
/**
   * Computes the index of the window in its parent's array of frames.
   *
   * @param {Window} childWindow The window to use in the calculation.
   * @return {number} the frames index.
   */
Computes the index of the window in its parent's array of frames.
@param {Window} childWindow The window to use in the calculation.
@return {number} the frames index.
Computes the index of the window in its parent ' s array of frames . @param { Window } childWindow The window to use in the calculation . @return { number } the frames index .
iframeIndex(childWindow) {
    if (childWindow.parent != childWindow) {
      for (var i = 0; i < childWindow.parent.frames.length; i++) {
        if (childWindow.parent.frames[i] == childWindow) {
          return i;
        }
      }
    } else {
      return -1;
    }
  }
iframeIndex ( childWindow ) { if ( childWindow . parent != childWindow ) { for ( var i = 0 ; i < childWindow . parent . frames . length ; i ++ ) { if ( childWindow . parent . frames [ i ] == childWindow ) { return i ; } } } else { return - 1 ; } }
Computes the index of the window in its parent's array of frames.
Computes the index of the window in its parent ' s array of frames .