Created
August 16, 2018 11:45
-
-
Save VasylKyryliuk/a8a2343442f6b4007f93bcb7ac83ab7d to your computer and use it in GitHub Desktop.
new Event('resize')
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
$(document).on('click', '.element-class', function() { | |
window.dispatchEvent(new Event('resize')); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment