KnockoutJS scramble exportDependencies

This commit is contained in:
the-djmaze 2024-03-03 17:30:15 +01:00
parent 667e50c9fb
commit 2876f92f4d
3 changed files with 4 additions and 4 deletions

View file

@ -78,7 +78,7 @@ ko.bindingContext = class {
return self['$data'];
};
if (options?.['exportDependencies']) {
if (options?.exportDependencies) {
// The "exportDependencies" option means that the calling code will track any dependencies and re-create
// the binding context when they change.
updateContext();

View file

@ -7,7 +7,7 @@ function makeWithIfBinding(bindingKey, isWith, isNot) {
var savedNodes, contextOptions = {}, needAsyncContext;
if (isWith) {
contextOptions = { 'exportDependencies': true };
contextOptions = { exportDependencies: true };
}
needAsyncContext = allBindings['has'](ko.bindingEvent.descendantsComplete);