mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-01 08:16:03 +00:00
koArrayWithDestroy creates ko.observableArray and calls the desired onDestroy() on entry delete.
9 lines
197 B
JavaScript
9 lines
197 B
JavaScript
import { koArrayWithDestroy } from 'External/ko';
|
|
|
|
export const SieveUserStore = {
|
|
// capabilities
|
|
capa: ko.observableArray(),
|
|
// Sieve scripts SieveScriptModel
|
|
scripts: koArrayWithDestroy()
|
|
}
|