Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixing code sample.

  • Loading branch information...
commit d17541b933cf6c82d1237f6e09c5ae192bed2d09 1 parent 3453e53
@pwhisenhunt pwhisenhunt authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 book/index.html
View
4 book/index.html
@@ -8803,8 +8803,10 @@ <h2 id="detailnamespacing">Namespacing Patterns</h2>
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>
Please sign in to comment.
Something went wrong with that request. Please try again.