diff --git a/docs/07-forms.md b/docs/07-forms.md index 9cdc0d27a..28b04bede 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 31348fccb..9cd8ac354 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?