Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #68 from pwhisenhunt/patch-1

Fix for issue #65
  • Loading branch information...
commit 6435a241eb2c63e4bfa559cf82940dc4c6429d9c 2 parents f8da704 + 0af1a96
@addyosmani authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 book/index.html
View
4 book/index.html
@@ -1509,8 +1509,8 @@ <h2 id="singletonpatternjavascript">
// Usage:
-var singleA = mySingleton;
-var singleB = mySingleton;
+var singleA = mySingleton.getInstance();
+var singleB = mySingleton.getInstance();
console.log( singleA === singleB ); // true
</pre>
Please sign in to comment.
Something went wrong with that request. Please try again.