asciidisco/Backbone.Mutators — pull request #6 by bendangelo (2012-10-23 15:12:00+00:00)
Title: Single Setter / Getter

Implemented what I mentioned before. I had to change the context for the getter method.

This:
return this.mutators[attr].call(this.attributes);

To This:
return this.mutators[attr].call(this);

One issue is setting an object with a mutator and normal set. It causes issues because of this line:

if (ret !== null) {
return ret;
}

Take a look at the last test. I have to return null for it to pass. Its pretty complicated and I think the solution is up to you.