code: function handleScreenOrientationChange () {
  
  	if ( hasScreenOrientationAPI ) {
  
  		screenOrientationAngle = ( window.screen.orientation.angle || 0 ) * degToRad;
  
  	} else {
  
  		screenOrientationAngle = ( window.orientation || 0 ) * degToRad;
  
  	}
  
  }
docs: //// Internal Event Handlers //////