useful to not query offsetWidth twice
function() {
          if ((cachedWidth = element.offsetWidth) != lastWidth || (cachedHeight = element.offsetHeight) != lastHeight) {
              dirty = true;

              lastWidth = cachedWidth;
              lastHeight = cachedHeight;
          }
          reset();
        }