KnockoutJS scramble createChildContext

This commit is contained in:
the-djmaze 2024-03-03 17:24:55 +01:00
parent 47cd902369
commit 4ee00d30ae
4 changed files with 5 additions and 5 deletions

View file

@ -61,7 +61,7 @@
'element': element,
'templateNodes': originalChildNodes
});
ko.applyBindingsToDescendants(asyncContext['createChildContext'](currentViewModel, {
ko.applyBindingsToDescendants(asyncContext.createChildContext(currentViewModel, {
'extend': ctx => {
ctx['$component'] = currentViewModel;
ctx['$componentTemplateNodes'] = originalChildNodes;