tko icon indicating copy to clipboard operation
tko copied to clipboard

`options.bindingGlobals` can't be changed at runtime

Open danieldickison opened this issue 3 years ago • 0 comments

When using the prebuild knockout or reference builds, because the tko binding provider encapsulates the global options that were set when it was built, setting options.bindingGlobals has no effect. We currently work around this by doing:

ko.options.bindingGlobals = {...};
ko.bindingProvider.setGlobals(ko.options.bindingGlobals);

I'm not sure it's really necessary to change this behavior, but it might be good to spell out which of the options are evaluated at build-time vs runtime.

danieldickison avatar Jan 18 '22 23:01 danieldickison