mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-29 20:19:22 +03:00
Added isFunction()
This commit is contained in:
parent
658ac816c8
commit
fe4dbc729c
6 changed files with 13 additions and 21 deletions
3
dev/External/ko.js
vendored
3
dev/External/ko.js
vendored
|
|
@ -1,10 +1,9 @@
|
|||
import { i18n, i18nToNodes, trigger } from 'Common/Translator';
|
||||
import { doc, createElement } from 'Common/Globals';
|
||||
import { SaveSettingsStep } from 'Common/Enums';
|
||||
import { isNonEmptyArray } from 'Common/Utils';
|
||||
import { isNonEmptyArray, isFunction } from 'Common/Utils';
|
||||
|
||||
const
|
||||
isFunction = v => typeof v === 'function',
|
||||
koValue = value => !ko.isObservable(value) && isFunction(value) ? value() : ko.unwrap(value);
|
||||
|
||||
ko.bindingHandlers.tooltip = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue