mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-31 21:19:21 +03:00
Underscore.js _.delay() to native setTimeout()
This commit is contained in:
parent
a82575a830
commit
43c92a82e6
29 changed files with 67 additions and 82 deletions
|
|
@ -222,7 +222,7 @@ class Selector {
|
|||
|
||||
this.scrollToFocused();
|
||||
|
||||
_.delay(() => this.scrollToFocused(), 100);
|
||||
setTimeout(this.scrollToFocused, 100);
|
||||
}
|
||||
|
||||
this.iSelectNextHelper = 0;
|
||||
|
|
|
|||
|
|
@ -270,7 +270,7 @@ export function reload(admin, language) {
|
|||
cache: true
|
||||
}).then(
|
||||
() => {
|
||||
_.delay(
|
||||
setTimeout(
|
||||
() => {
|
||||
reloadData();
|
||||
|
||||
|
|
|
|||
|
|
@ -380,7 +380,7 @@ export function delegateRun(object, methodName, params, delay = 0) {
|
|||
if (0 >= delay) {
|
||||
object[methodName](...params);
|
||||
} else {
|
||||
_.delay(() => {
|
||||
setTimeout(() => {
|
||||
object[methodName](...params);
|
||||
}, delay);
|
||||
}
|
||||
|
|
@ -597,7 +597,7 @@ export function settingsSaveHelperFunction(fCallback, koTrigger, context = null,
|
|||
if (fCallback) {
|
||||
fCallback.call(context, type, data, cached, requestAction, requestParameters);
|
||||
}
|
||||
_.delay(() => {
|
||||
setTimeout(() => {
|
||||
koTrigger.call(context, SaveSettingsStep.Idle);
|
||||
}, timer);
|
||||
};
|
||||
|
|
@ -1029,7 +1029,7 @@ export function triggerAutocompleteInputChange(delay = false) {
|
|||
};
|
||||
|
||||
if (delay) {
|
||||
_.delay(fFunc, 100);
|
||||
setTimeout(fFunc, 100);
|
||||
} else {
|
||||
fFunc();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue