Documentation says default is window. So if not too cumbersome, I suggest handling auto and undefined as 'window'