src/threshold.js
function updateViewport() {
  threshold._viewport.height = window.innerHeight;
  threshold._viewport.width = window.innerWidth;
}
function updateViewport() {
  threshold._viewport.height = window.innerHeight;
  threshold._viewport.width = window.innerWidth;
}
function updateViewport ( ) { threshold . _viewport . height = window . innerHeight ; threshold . _viewport . width = window . innerWidth ; }
Updates memoized viewport metrics
@method updateViewport
Updates memoized viewport metrics