mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-29 12:09:20 +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
|
|
@ -1,4 +1,3 @@
|
|||
import _ from '_';
|
||||
import ko from 'ko';
|
||||
import { componentExportHelper } from 'Component/Abstract';
|
||||
import { AbstractCheckbox } from 'Component/AbstractCheckbox';
|
||||
|
|
@ -34,10 +33,10 @@ class CheckboxMaterialDesignComponent extends AbstractCheckbox {
|
|||
triggerAnimation(box) {
|
||||
if (box) {
|
||||
this.animationBoxSetTrue();
|
||||
_.delay(this.animationCheckmarkSetTrue, 200);
|
||||
setTimeout(this.animationCheckmarkSetTrue, 200);
|
||||
} else {
|
||||
this.animationCheckmarkSetTrue();
|
||||
_.delay(this.animationBoxSetTrue, 200);
|
||||
setTimeout(this.animationBoxSetTrue, 200);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue