What you probably want to be doing is defining a custom Map constructor function like:
- BazMap = can.Map.extend({
- baz: can.compute(function () {
- return this.attr('foo') + ", " + this.attr('bar');
- })
- })
- b = new BazMap({foo: "one", bar: "two"})
- b.attr("baz")