Fixing the resize event binding.
Merge pull request #32 from bbcrd/fix-32

Resize event is assigned to window and not the Peaks instance