diff --git a/manuscript/markdown/Objects, Mutation, and State/this.md b/manuscript/markdown/Objects, Mutation, and State/this.md index eca6883..5bd457b 100644 --- a/manuscript/markdown/Objects, Mutation, and State/this.md +++ b/manuscript/markdown/Objects, Mutation, and State/this.md @@ -125,7 +125,7 @@ Any time we must do the same repetitive thing over and over and over again, we i banksQueue.pushTail('Hello'); banksQueue.pushTail('JavaScript') -Every time you invoke a function that is a member of an object, JavaScript binds that object to the name `this` in the environment of the function just as if it was an argument.[^this] Now we can easily make copies: +Every time you invoke a function that is a member of an object, JavaScript binds that object to the name `this` in the environment of the function just as if it were an argument.[^this] Now we can easily make copies: copyOfQueue = extend({}, banksQueue) copyOfQueue.array = [] @@ -145,4 +145,4 @@ There is more to `this` than we've discussed here. We'll explore things in more T> Closures tightly couple functions to the environments where they are created limiting their flexibility. Using `this` alleviates the coupling. Copying objects is but one example of where that flexibility is needed. -[^this]: JavaScript also does other things with `this` as well, but this is all we care about right now. \ No newline at end of file +[^this]: JavaScript also does other things with `this` as well, but this is all we care about right now.