diff --git a/manuscript/markdown/Objects, Mutation, and State/composition-and-extension.md b/manuscript/markdown/Objects, Mutation, and State/composition-and-extension.md index 481c628..7b676d4 100644 --- a/manuscript/markdown/Objects, Mutation, and State/composition-and-extension.md +++ b/manuscript/markdown/Objects, Mutation, and State/composition-and-extension.md @@ -57,7 +57,7 @@ Here's an abstract "model" that supports undo and redo composed from a pair of s return obj }, get: function (key) { - return attributes(key) + return attributes[key] }, has: function (key) { return attributes.hasOwnProperty(key)