Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * MySingleton
- *
- */
- define([
- ], function( ) {
- var instance = null;
- var p = MySingleton.prototype;
- function MySingleton() {
- }
- MySingleton.getInstance = function(){
- if( instance == null ) instance = new MySingleton();
- return instance;
- }
- return MySingleton.getInstance();
- });
Add Comment
Please, Sign In to add comment