Skip to content Skip to sidebar Skip to footer
Showing posts with the label Singleton

Binding "this" When Passing An Object's Member Function

I had a 'class' defined and was making only one instance of it. The instance possessed a me… Read more Binding "this" When Passing An Object's Member Function

Javascript And Singleton Pattern

I am reading the book by Addy Osmani book, Learning Javascript design patterns. http://addyosmani.c… Read more Javascript And Singleton Pattern

Module Pattern Vs. Instance Of An Anonymous Constructor

So there's this so-called module pattern for creating singletons with private members: var foo … Read more Module Pattern Vs. Instance Of An Anonymous Constructor

Binding "this" When Passing An Object's Member Function

I had a 'class' defined and was making only one instance of it. The instance possessed a me… Read more Binding "this" When Passing An Object's Member Function