kmalakoff/knockback — Issue #11: Simplification for  kb.LocalizedObservable and getObservedValue
Author: kmalakoff
Created: 2011-11-05 11:48:50+00:00
State: open

@scottmessinger and @yuchi : I have a proposal for a simplification:

kb.LocalizedObservable -> kb.Localizer: I called it an "observable" because it wraps a ko.dependentObservable behind-the-scenes but its purpose is to localize something else. Does it make sense to drop Observable?

kb.Localizer.getObservedValue and kb.Localizer.setObservedValue -> kb.Localizer.wrappedValue(): the idea here would be to use a dual-purpose Javascript function (undefined parameter means get and defined parameter means set). The other name I was thinking about was kb.Localizer.value() - it is shorter but doesn't convey the meaning.