Prevent window.resize when target is not window
Prevent handleWindowResize if the target is not window. Sometimes events named "resize" do bubble up (i.e. from jquery.ui elements). This causes handleWindowResize to be executed which shouldn't be.
Merge branch 'fix-windowresize'