function _init( self ) {
  // TODO: Check what browsers this is necessary for and
  // check whether it is still applicable.
  _viewportEl = window;
  _propPrefix = 'inner';
  var modernBrowser = 'innerWidth' in window;
  if ( !modernBrowser ) {
    _viewportEl = document.documentElement || document.body;
    _propPrefix = 'client';
  }

  self.handleViewportChange();
  self.watchWindowResize();
}
/**
 * Private helper method for instance initialization.
 * @param {object} self Reference to instance.
 */
Private helper method for instance initialization.
@param {object} self Reference to instance.
Private helper method for instance initialization . @param { object } self Reference to instance .
function _init( self ) {
  _viewportEl = window;
  _propPrefix = 'inner';
  var modernBrowser = 'innerWidth' in window;
  if ( !modernBrowser ) {
    _viewportEl = document.documentElement || document.body;
    _propPrefix = 'client';
  }
  self.handleViewportChange();
  self.watchWindowResize();
}
function _init ( self ) { _viewportEl = window ; _propPrefix = 'inner' ; var modernBrowser = 'innerWidth' in window ; if ( ! modernBrowser ) { _viewportEl = document . documentElement || document . body ; _propPrefix = 'client' ; } self . handleViewportChange ( ) ; self . watchWindowResize ( ) ; }
Private helper method for instance initialization.
Private helper method for instance initialization .
// TODO: Check what browsers this is necessary for and // check whether it is still applicable.