mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-02 22:17:03 +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
|
|
@ -508,7 +508,7 @@ class ComposePopupView extends AbstractViewNext {
|
|||
contactsCommand() {
|
||||
if (this.allowContacts) {
|
||||
this.skipCommand();
|
||||
_.delay(() => {
|
||||
setTimeout(() => {
|
||||
showScreenPopup(require('View/Popup/Contacts'), [true, this.sLastFocusedField]);
|
||||
}, Magics.Time200ms);
|
||||
}
|
||||
|
|
@ -706,7 +706,7 @@ class ComposePopupView extends AbstractViewNext {
|
|||
editor(fOnInit) {
|
||||
if (fOnInit) {
|
||||
if (!this.oEditor && this.composeEditorArea()) {
|
||||
// _.delay(() => {
|
||||
// setTimeout(() => {
|
||||
this.oEditor = new HtmlEditor(
|
||||
this.composeEditorArea(),
|
||||
null,
|
||||
|
|
@ -1169,7 +1169,7 @@ class ComposePopupView extends AbstractViewNext {
|
|||
|
||||
setFocusInPopup() {
|
||||
if (!bMobileDevice) {
|
||||
_.delay(() => {
|
||||
setTimeout(() => {
|
||||
if ('' === this.to()) {
|
||||
this.to.focused(true);
|
||||
} else if (this.oEditor) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue