Wondering if there is a way to combine identical code of 2 separate functions into 1 function.
In my case:
jQuery(\'body\').on(\'click\', \'.some_div
There's another way to do that.
jQuery('body').on('click', '.some_div', function (e) { // Long and fancy code }); jQuery(window).resize(function () { $('.some_div').trigger('click') });