KnockoutJS don't scramble exportDependencies. controlsDescendantBindings, createChildContext

This commit is contained in:
the-djmaze 2024-03-03 19:10:00 +01:00
parent a8e38a998f
commit 766d3eaa98
8 changed files with 16 additions and 16 deletions

View file

@ -59,12 +59,12 @@
currentViewModel = componentDefinition['createViewModel'](componentParams, {
'element': element
});
ko.applyBindingsToDescendants(asyncContext.createChildContext(currentViewModel, {}), element);
ko.applyBindingsToDescendants(asyncContext['createChildContext'](currentViewModel, {}), element);
}
});
}, { disposeWhenNodeIsRemoved: element });
return { controlsDescendantBindings: true };
return { 'controlsDescendantBindings': true };
}
};