Fix a bug with Internet Explorer < 9 who fired event window.resize when any element on the page is resized