Thursday, February 19, 2015

SImple Singleton in JS

We call get_app every where and we still get same variable reference. So it shows that we can get same object to be extended or to be used. It also can be called as an app or a plugin. for example See example Edit fiddle - JSFiddle