code: function (win) {
          var doc, rootElm;
  
          win = !win ? this.win : win;
          doc = win.document;
          rootElm = this.boxModel ? doc.documentElement : doc.body;
  
          // Returns viewport size excluding scrollbars
          return {
            x: win.pageXOffset || rootElm.scrollLeft,
            y: win.pageYOffset || rootElm.scrollTop,
            w: win.innerWidth || rootElm.clientWidth,
            h: win.innerHeight || rootElm.clientHeight
          };
        }
docs: Returns the viewport of the window.
  
  @method getViewPort
  @param {Window} win Optional window to get viewport of.
  @return {Object} Viewport object with fields x, y, w and h.