mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-30 20:49:20 +03:00
Added isFunction()
This commit is contained in:
parent
658ac816c8
commit
fe4dbc729c
6 changed files with 13 additions and 21 deletions
|
|
@ -1,5 +1,6 @@
|
|||
import { Scope } from 'Common/Enums';
|
||||
import { i18n } from 'Common/Translator';
|
||||
import { isFunction } from 'Common/Utils';
|
||||
|
||||
import { AbstractViewPopup } from 'Knoin/AbstractViews';
|
||||
|
||||
|
|
@ -32,17 +33,13 @@ class AskPopupView extends AbstractViewPopup {
|
|||
yesClick() {
|
||||
this.cancelCommand();
|
||||
|
||||
if (typeof this.fYesAction === 'function') {
|
||||
this.fYesAction.call(null);
|
||||
}
|
||||
isFunction(this.fYesAction) && this.fYesAction.call(null);
|
||||
}
|
||||
|
||||
noClick() {
|
||||
this.cancelCommand();
|
||||
|
||||
if (typeof this.fNoAction === 'function') {
|
||||
this.fNoAction.call(null);
|
||||
}
|
||||
isFunction(this.fNoAction) && this.fNoAction.call(null);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue