Underscore.js _.delay() to native setTimeout()

This commit is contained in:
djmaze 2020-07-22 20:28:25 +02:00
parent a82575a830
commit 43c92a82e6
29 changed files with 67 additions and 82 deletions

View file

@ -202,7 +202,7 @@ export function buildViewModel(ViewModelClass, vmScreen) {
popupVisibilityNames.remove(vm.viewModelName);
vm.viewModelDom.css('z-index', 2000);
_.delay(() => vm.viewModelDom.hide(), 300);
setTimeout(() => vm.viewModelDom.hide(), 300);
}
});
}
@ -432,11 +432,11 @@ export function startScreens(screensClasses) {
hasher.changed.add(cross.parse, cross);
hasher.init();
_.delay(() => {
setTimeout(() => {
$htmlCL.remove('rl-started-trigger');
$htmlCL.add('rl-started');
}, 100);
_.delay(() => $htmlCL.add('rl-started-delay'), 200);
setTimeout(() => $htmlCL.add('rl-started-delay'), 200);
}
/**