mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-05 15:37:03 +03:00
Replace some ko.exportSymbol('*') in favour of ko['*']
and drop ko.exportProperty()
This commit is contained in:
parent
6c144b5a28
commit
7c1f70c51e
16 changed files with 145 additions and 173 deletions
|
|
@ -165,7 +165,7 @@
|
|||
ko.bindingEvent.notify(targetNode, ko.bindingEvent.childrenComplete);
|
||||
};
|
||||
|
||||
if (!options['beforeRemove'] && ko.isObservableArray(arrayOrObservableArray)) {
|
||||
if (!options['beforeRemove'] && ko['isObservableArray'](arrayOrObservableArray)) {
|
||||
setDomNodeChildrenFromArrayMapping(arrayOrObservableArray.peek());
|
||||
|
||||
var subscription = arrayOrObservableArray['subscribe'](changeList => {
|
||||
|
|
@ -188,7 +188,7 @@
|
|||
var templateComputedDomDataKey = ko.utils.domData.nextKey();
|
||||
function disposeOldComputedAndStoreNewOne(element, newComputed) {
|
||||
var oldComputed = ko.utils.domData.get(element, templateComputedDomDataKey);
|
||||
oldComputed?.dispose?.();
|
||||
oldComputed?.['dispose']?.();
|
||||
ko.utils.domData.set(element, templateComputedDomDataKey, (newComputed && (!newComputed.isActive || newComputed.isActive())) ? newComputed : undefined);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue