Exploring OpenSource Web Technology and Cloud Computing. Laravel, Magento, Ionic, Angular, Twitter Bootstrap, Amazon Web Service, Digital Ocean.
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.
Edit fiddle - JSFiddle