Also seems slightly more idiomatic to assign to the local `var width` / `height` first, then assign those to `this_lastWidth` / `this._lastHeight` rather than vice versa.