From 2bcc7616673eca3358fbd42ce96d57412f1a3ae9 Mon Sep 17 00:00:00 2001 From: Ben Alpert Date: Mon, 20 Jul 2015 08:28:53 -0700 Subject: [PATCH] counterexample -> antipattern --- docs/07-forms.md | 2 +- docs/08.1-more-about-refs.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/07-forms.md b/docs/07-forms.md index 9cdc0d27..28b04bed 100644 --- a/docs/07-forms.md +++ b/docs/07-forms.md @@ -129,7 +129,7 @@ Since this method describes the view at any point in time, the value of the text In HTML, the value of ` ``` diff --git a/docs/08.1-more-about-refs.md b/docs/08.1-more-about-refs.md index 31348fcc..9cd8ac35 100644 --- a/docs/08.1-more-about-refs.md +++ b/docs/08.1-more-about-refs.md @@ -48,7 +48,7 @@ Notice how, in this example, we want to "tell" the input something - something t This means that you should never "hold onto" something that you return from `render()` and then expect it to be anything meaningful. ```javascript - // counterexample: DO NOT DO THIS! + // antipattern: This won't work. render: function() { var myInput = ; // I'm going to try to call methods on this this.rememberThisInput = myInput; // input at some point in the future! YAY! @@ -61,7 +61,7 @@ This means that you should never "hold onto" something that you return from `ren } ``` -In this counterexample, the `` is merely a *description* of an ``. This description is used to create a *real* **backing instance** for the ``. +In this example, the `` is merely a *description* of an ``. This description is used to create a *real* **backing instance** for the ``. So how do we talk to the *real* backing instance of the input?