mirror of
https://github.com/the-djmaze/snappymail.git
synced 2024-11-10 17:13:38 +08:00
e324e2f6b6
koArrayWithDestroy creates ko.observableArray and calls the desired onDestroy() on entry delete.
8 lines
197 B
JavaScript
8 lines
197 B
JavaScript
import { koArrayWithDestroy } from 'External/ko';
|
|
|
|
export const SieveUserStore = {
|
|
// capabilities
|
|
capa: ko.observableArray(),
|
|
// Sieve scripts SieveScriptModel
|
|
scripts: koArrayWithDestroy()
|
|
}
|