These are chat archives for canjs/canjs
watchfunction doesn't always work, when working with nested objects, so to workaround that, I've modified my function to use
.watch('center.longitude'...)which does work. The template renders the initial value, but the template still isn't getting updated when the values change. My
onKeyValuehandler is getting called. But my
getKeyValueis not getting called after that which is where I believe the problem lies.
onKeyValueis called, then whatever triggers
watchhappens, and your handlers don't update the template?
getKeyValueshouldn't have to be called after that in order for it to work
You make a watch for every onKeyValue, but each watch handler goes over the entire handlers list.
I'm not following, shouldn't each watch handler call each handler that is listening for that key's changes?
observation.add(obj, key)to the get function from can-util?