Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Minor fix to revealing module pattern.

  • Loading branch information...
commit 0439571cd370696e1430a0c3071473cea0301737 1 parent 933fce0
@addyosmani authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 book/index.html
View
4 book/index.html
@@ -1335,14 +1335,14 @@ <h2 id="revealingmodulepatternjavascript">The Revealing Module Pattern</h2>
var myRevealingModule = function () {
var privateVar = "Ben Cherry",
- publicVar = "Hey there!";
+ publicVar = "Hey there!";
function privateFunction() {
console.log( "Name:" + privateVar );
};
function publicSetName( strName ) {
- privateName = strName;
+ privateVar = strName;
};
function publicGetName() {
Please sign in to comment.
Something went wrong with that request. Please try again.