Some thing wrong when no set caption in config
And code here fail
self.caption = ko.observable(config.caption)
? config.caption
: ko.observable(config.caption !== undefined ? config.caption : defaults.caption);
maybe it should be
self.caption = ko.isObservable(config.caption)
? config.caption
: ko.observable(config.caption !== undefined ? config.caption : defaults.caption);
Some thing wrong when no set caption in config And code here fail self.caption = ko.observable(config.caption) ? config.caption : ko.observable(config.caption !== undefined ? config.caption : defaults.caption);
maybe it should be self.caption = ko.isObservable(config.caption) ? config.caption : ko.observable(config.caption !== undefined ? config.caption : defaults.caption);
Best regards!