mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-30 12:39:20 +03:00
Added isFunction()
This commit is contained in:
parent
658ac816c8
commit
fe4dbc729c
6 changed files with 13 additions and 21 deletions
|
|
@ -1,7 +1,7 @@
|
|||
import { isArray, addObservablesTo, addComputablesTo } from 'Common/Utils';
|
||||
import { isArray, isFunction, addObservablesTo, addComputablesTo } from 'Common/Utils';
|
||||
|
||||
function dispose(disposable) {
|
||||
if (disposable && 'function' === typeof disposable.dispose) {
|
||||
if (disposable && isFunction(disposable.dispose)) {
|
||||
disposable.dispose();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue