Prevent delayed resize after destroy, fixes #252

Due to onresize setting a timeout to run the resize method after a delay
of 100ms, it will still be run even after using the destroy method,
because unbinding the resize method doesn't help preventing already
scheduled functions from running. This fix should prevent this from
happening.