mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-01-01 04:22:15 +08:00
e324e2f6b6
koArrayWithDestroy creates ko.observableArray and calls the desired onDestroy() on entry delete.
7 lines
308 B
JavaScript
7 lines
308 B
JavaScript
import { koArrayWithDestroy } from 'External/ko';
|
|
|
|
export const IdentityUserStore = koArrayWithDestroy();
|
|
|
|
IdentityUserStore.getIDS = () => IdentityUserStore.map(item => (item ? item.id() : null))
|
|
.filter(value => null !== value);
|
|
IdentityUserStore.loading = ko.observable(false).extend({ debounce: 100 });
|