mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-30 12:39:20 +03:00
Improved knockout observables management to prevent memory leaks
This commit is contained in:
parent
b165a1de4f
commit
3eb6ab1ef7
46 changed files with 1020 additions and 1013 deletions
|
|
@ -56,4 +56,16 @@ export class AbstractViewNext {
|
|||
return this.viewModelDom.querySelector(selectors);
|
||||
}
|
||||
|
||||
addObservables(observables) {
|
||||
ko.addObservablesTo(this, observables);
|
||||
}
|
||||
|
||||
addComputables(computables) {
|
||||
ko.addComputablesTo(this, computables);
|
||||
}
|
||||
|
||||
addSubscribables(subscribables) {
|
||||
ko.addSubscribablesTo(this, subscribables);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue