Created
September 27, 2010 19:23
-
-
Save jasonwyatt/599640 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Triggers the 'onresize' event for the window manually. | |
if(document.createEventObject){ | |
window.fireEvent('onresize', document.createEventObject()); | |
} else { | |
var evt = document.createEvent("HTMLEvents"); | |
evt.initEvent('resize', true, true); | |
window.dispatchEvent(evt); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment