mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-29 12:09:20 +03:00
Cleanup component models
This commit is contained in:
parent
536a9d20fd
commit
5748dea4bc
6 changed files with 71 additions and 105 deletions
15
dev/External/ko.js
vendored
15
dev/External/ko.js
vendored
|
|
@ -3,12 +3,15 @@ import { doc, createElement } from 'Common/Globals';
|
|||
import { SaveSettingsStep } from 'Common/Enums';
|
||||
import { arrayLength, isFunction } from 'Common/Utils';
|
||||
|
||||
/**
|
||||
* The value of the pureComputed observable shouldn’t vary based on the
|
||||
* number of evaluations or other “hidden” information. Its value should be
|
||||
* based solely on the values of other observables in the application
|
||||
*/
|
||||
export const koComputable = fn => ko.computed(fn, {'pure':true});
|
||||
export const
|
||||
/**
|
||||
* The value of the pureComputed observable shouldn’t vary based on the
|
||||
* number of evaluations or other “hidden” information. Its value should be
|
||||
* based solely on the values of other observables in the application
|
||||
*/
|
||||
koComputable = fn => ko.computed(fn, {'pure':true}),
|
||||
|
||||
dispose = disposable => disposable && isFunction(disposable.dispose) && disposable.dispose();
|
||||
|
||||
ko.bindingHandlers.tooltipErrorTip = {
|
||||
init: (element, fValueAccessor) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue