Showing posts with label Google Closure Library. Show all posts
Showing posts with label Google Closure Library. Show all posts

Sunday, April 15, 2012

Singleton in JavaScript with Google Closure library and compiler

I'm writing a small WebApp. I want to a create singleton. Probably there is a dozen different way to implement it in JavaScript. As I became a fan of Google technologies I will show two solutions how it can be easily implemented using Google Closure.