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