Upgraded some old JavaScript to ECMAScript 1.6

Removed some jQuery references
Added JavaScript Globals.$htmlCL for frequently used window.document.documentElement.classList
This commit is contained in:
djmaze 2020-07-15 14:25:51 +02:00
parent a6a337e5ce
commit 0b0747b8dc
19 changed files with 142 additions and 151 deletions

View file

@ -1449,10 +1449,10 @@ export function domReady(fn) {
export const windowResize = _.debounce((timeout) => {
if (isUnd(timeout) || isNull(timeout)) {
$win.resize();
$win.trigger('resize');
} else {
window.setTimeout(() => {
$win.resize();
$win.trigger('resize');
}, timeout);
}
}, 50);