Permalink
Browse files

Minor fix to revealing module pattern.

  • Loading branch information...
addyosmani committed Jun 13, 2012
1 parent 933fce0 commit 0439571cd370696e1430a0c3071473cea0301737
Showing with 2 additions and 2 deletions.
  1. +2 −2 book/index.html
View
@@ -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() {

0 comments on commit 0439571

Please sign in to comment.