It seems I'm not able to bind to the property name event for a computed value. Is that correct?
Say we have the following:
- var state = new can.Map();
- // primitive values
- state.attr('foo', 'one fish, two fish');
- state.attr('bar', 'red fish, blue fish');
- // computed value
- state.attr('baz', function () {
- return this.attr('foo') + ", " + this.attr('bar');
- });
Now, if we change `foo`, the `foo` event is fired but the `baz` event is not, even though the computed value of `baz` has changed as a result of the change to `foo` ... If there's no property name event fired for computed values, how can I listen to when they change?
Here's a JSFiddle that demostrates the issue clearly: http://jsfiddle.net/45VrT/
Thanks in advance for any help you're able to provide.
-Mac