Resize event is assigned to window and not the Peaks instance

`this` -> `that`