Skip to content

options.bindingGlobals can't be changed at runtime #166

@danieldickison

Description

@danieldickison

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions