Created
May 10, 2017 10:32
-
-
Save di3/8061cb2588f3c24382da3013efb819e7 to your computer and use it in GitHub Desktop.
trigger resize event
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
var e = document.createEvent("Events"); | |
e.initEvent("resize", true, true); | |
window.dispatchEvent(e); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment