javascript/atoms/dom.js
function getScroll(e) {
    if (e == htmlElem) {
      return new goog.dom.DomHelper(ownerDoc).getDocumentScroll();
    } else {
      return new goog.math.Coordinate(e.scrollLeft, e.scrollTop);
    }
  }
function getScroll(e) {
    if (e == htmlElem) {
      return new goog.dom.DomHelper(ownerDoc).getDocumentScroll();
    } else {
      return new goog.math.Coordinate(e.scrollLeft, e.scrollTop);
    }
  }
function getScroll ( e ) { if ( e == htmlElem ) { return new goog . dom . DomHelper ( ownerDoc ) . getDocumentScroll ( ) ; } else { return new goog . math . Coordinate ( e . scrollLeft , e . scrollTop ) ; } }
Returns the scroll offset of the given element.
Returns the scroll offset of the given element .