From 66ad3b686e898938938251efbb324adb6c4a6199 Mon Sep 17 00:00:00 2001 From: Colin DeCarlo Date: Thu, 9 Apr 2015 23:04:25 -0400 Subject: [PATCH] Correct syntax in `get` method of ModelMaker function References issue 104 (https://github.com/raganwald/javascript-allonge/issues/104) --- .../Objects, Mutation, and State/composition-and-extension.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)