Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #20 from akahn/patch-1

Correct spelling (reveling -> revealing)
  • Loading branch information...
commit d126f7fe53363decb39c05094386a06c243fd9ba 2 parents 0bc4414 + e255040
@addyosmani authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  book/index.html
View
2  book/index.html
@@ -931,7 +931,7 @@ <h2 id="revealingmodulepatternjavascript">The Revealing Module Pattern</h2>
<p>The result of his efforts were an updated pattern where you would simply define all of your functions and variables in the private scope and return an anonymous object at the end of the module along with pointers to both the private variables and functions you wished to reveal as public.</p>
-<p>Once again, you&rsquo;re probably wondering what the benefits of this approach are. The Reveling Module Pattern allows the syntax of your script to be fairly consistent - it also makes it very clear at the end which of your functions and variables may be accessed publicly, something that is quite useful. In addition, you are also able to reveal private functions with more specific names if you wish.</p>
+<p>Once again, you&rsquo;re probably wondering what the benefits of this approach are. The Revealing Module Pattern allows the syntax of your script to be fairly consistent - it also makes it very clear at the end which of your functions and variables may be accessed publicly, something that is quite useful. In addition, you are also able to reveal private functions with more specific names if you wish.</p>
<p>An example of how to use the revealing module pattern can be found below:</p>
<p>
<pre class="brush: js">
Please sign in to comment.
Something went wrong with that request. Please try again.