docs: function (base) {
              var document = base && base.ownerDocument ? base.ownerDocument : Aria.$window.document;
              var scrollLeft = 0;
              var scrollTop = 0;
              var documentScroll = this.getDocumentScrollElement(document);
  
              if (base != null) {
                  var next = base;
                  while (next != null) {
                      if (next.scrollLeft) {
                          scrollLeft += next.scrollLeft;
                      }
                      if (next.scrollTop) {
                          scrollTop += next.scrollTop;
                      }
                      next = next.parentNode;
                  }
                  // now subtract scroll offset of the document
                  scrollLeft -= documentScroll.scrollLeft;
                  scrollTop -= documentScroll.scrollTop;
  
              } else {
                  scrollLeft = documentScroll.scrollLeft;
                  scrollTop = documentScroll.scrollTop;
              }
  
              // this will be used to insert elements in the body, so body scrolls needs to be taken in consideration also
              if (documentScroll != document.body) {
                  scrollLeft += document.body.scrollLeft;
                  scrollTop += document.body.scrollTop;
              }
  
              var scroll = {
                  'scrollLeft' : scrollLeft,
                  'scrollTop' : scrollTop
              };
              return scroll;
          }