scroller(w){
    console.log('r2 iframe loaded');

    // quick hack to hide a black editor bar
    w.document.querySelector('.view-navigation').style.display='none';

    let rHeader = this.header,
      scroller;
    if(rHeader){
      scroller = new HeaderScroller(w,rHeader);
      console.log(scroller);
    }
    return scroller;
  }
/**
   * Function that initialises scroller on the header element
   * @param {Window} w - window object of the iframe
   * @returns {HeaderScroller} Returns `HeaderScroller` instance
   * */
Function that initialises scroller on the header element
@param {Window} w - window object of the iframe
@returns {HeaderScroller} Returns `HeaderScroller` instance
Function that initialises scroller on the header element @param { Window } w - window object of the iframe @returns { HeaderScroller } Returns ` HeaderScroller ` instance
scroller(w){
    console.log('r2 iframe loaded');
    w.document.querySelector('.view-navigation').style.display='none';
    let rHeader = this.header,
      scroller;
    if(rHeader){
      scroller = new HeaderScroller(w,rHeader);
      console.log(scroller);
    }
    return scroller;
  }
scroller ( w ) { console . log ( 'r2 iframe loaded' ) ; w . document . querySelector ( '.view-navigation' ) . style . display = 'none' ; let rHeader = this . header , scroller ; if ( rHeader ) { scroller = new HeaderScroller ( w , rHeader ) ; console . log ( scroller ) ; } return scroller ; }
Function that initialises scroller on the header element
 @param {Window} w - window object of the iframe
 @returns {HeaderScroller} Returns `HeaderScroller` instance
Function that initialises scroller on the header element @param { Window } w - window object of the iframe @returns { HeaderScroller } Returns ` HeaderScroller ` instance
// quick hack to hide a black editor bar