Skip to content

Instantly share code, notes, and snippets.

@VasylKyryliuk
Created August 16, 2018 11:45
Show Gist options
  • Save VasylKyryliuk/a8a2343442f6b4007f93bcb7ac83ab7d to your computer and use it in GitHub Desktop.
Save VasylKyryliuk/a8a2343442f6b4007f93bcb7ac83ab7d to your computer and use it in GitHub Desktop.
new Event('resize')
$(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