Permalink
Browse files

Fixing code sample.

  • Loading branch information...
1 parent 3453e53 commit d17541b933cf6c82d1237f6e09c5ae192bed2d09 @pwhisenhunt pwhisenhunt committed Dec 31, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 book/index.html
View
@@ -8803,8 +8803,10 @@ <h3>5. Immediately-invoked Function Expressions (IIFE)s</h3>
speak( "goodbye" );
}
}( window.namespace = window.namespace || {});
+
+// Outputs: goodbye
+namespace.sayGoodbye();
</pre>
-<p>namespace.sayGoodbye(); // goodbye</p>
<p>If would like to find out more about this pattern, I recommend reading both Ben's <a href="http://benalman.com/news/2010/11/immediately-invoked-function-expression/">IIFE post</a> for more information.</p>

0 comments on commit d17541b

Please sign in to comment.