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

@ -1,4 +1,3 @@
import _ from '_';
import ko from 'ko';
import key from 'key';
@ -54,7 +53,7 @@ class AbstractSystemDropDownUserView extends AbstractViewNext {
accountClick(account, event) {
if (account && event && !isUnd(event.which) && 1 === event.which) {
AccountStore.accounts.loading(true);
_.delay(() => AccountStore.accounts.loading(false), Magics.Time1s);
setTimeout(() => AccountStore.accounts.loading(false), Magics.Time1s);
}
return true;