Skip to content

Commit fc9d5bb

Browse files
committed
Update singelton.js
1 parent c391484 commit fc9d5bb

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

singelton.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
// http://www.dofactory.com/javascript/singleton-design-pattern
33

44
// The instances in clouser. (preffer)
5-
65
function Singelton() {
76
var instance = this;
87

@@ -25,11 +24,7 @@ var y = new Singelton();
2524
y.someProp = false;
2625
x.someProp // false
2726

28-
29-
30-
3127
// The instances in a static prop.
32-
3328
function Singelton() {
3429

3530
if( typeof Singelton.instance == 'object') {

0 commit comments

Comments
 (0)