What about the following instead?

```js
 var currentSizes = [
	resizeTest.offsetHeight,
	window.innerWidth || $document.width(),
	window.innerHeight || $document.height()
],